ProjectTech4DevAI / ProjectTech4DevAI/kaapi-backend
Make AWS S3 bucket name fully configurable
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 18
- Forks
- 10
- Ø Merge
- 2 T. 20 Std.
- Gemergte PRs (30 T.)
- 14
Beschreibung
Describe the issue
Currently, the AWS S3 bucket name is constructed dynamically in code like this:
return f"{self.AWS_S3_BUCKET_PREFIX}-{self.ENVIRONMENT}"
-
This assumes that all bucket names will follow the - pattern.
-
However, in future scenarios, users or organizations might bring their own bucket names, which may not include the environment in their naming convention or may follow completely different patterns.
-
Hardcoding the bucket name composition like this makes it inflexible and prone to failure if the naming convention does not match.
Expected behavior
-
There should be a single, fully-configurable AWS S3 bucket name setting
(e.g., AWS_S3_BUCKET_NAME)which is used directly without concatenating prefix and environment in code. -
This allows using existing customer buckets regardless of naming convention.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Durchsuche das Backend nach der im Issue gezeigten, auf AWS_S3_BUCKET_PREFIX und ENVIRONMENT basierenden Bucket-Konstruktion und verfolge, wo die Bucket-Einstellung gelesen wird. Ersetze diese Zusammensetzung durch eine einzelne konfigurierbare Bucket-Namenseinstellung und überprüfe, dass der konfigurierte Name unverändert verwendet wird, einschließlich Namen ohne Environment-Suffix.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, python
- Bereich
- backend, cloud
- Issue-Typ
- Feature
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 68/100