ProjectTech4DevAI / ProjectTech4DevAI/kaapi-backend
Make AWS S3 bucket name fully configurable
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 18
- Fork
- 10
- Merge medio
- 2g 20h
- PR unite (30g)
- 14
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Cerca nel backend la costruzione del bucket basata su AWS_S3_BUCKET_PREFIX e ENVIRONMENT mostrata nell’issue, quindi segui il punto in cui viene letta l’impostazione del bucket. Sostituisci questa composizione con un’unica impostazione configurabile del nome del bucket e verifica che il nome configurato venga utilizzato invariato, inclusi i nomi senza suffisso di ambiente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, python
- Ambito
- backend, cloud
- Tipo di issue
- Funzionalità
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 68/100