ProjectTech4DevAI / ProjectTech4DevAI/kaapi-backend

Make AWS S3 bucket name fully configurable

未关闭 适合新手
#269 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

enhancement
主要语言
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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。