ProjectTech4DevAI / ProjectTech4DevAI/kaapi-backend
Make AWS S3 bucket name fully configurable
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 18
- 派生
- 10
- 平均合并
- 2 天 20 小时
- 30 天内合并 PR
- 14
描述
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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
在 backend 中搜索 issue 所示的基于 AWS_S3_BUCKET_PREFIX 和 ENVIRONMENT 的 bucket 构造方式,然后追踪 bucket 设置的读取位置。将这种组合替换为单一的可配置 bucket 名称设置,并验证使用的是未作任何修改的已配置名称,包括不带环境后缀的名称。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- aws, python
- 领域
- backend, cloud
- Issue 类型
- 功能
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 68/100