Skip to content

[BE-3114] chore: 쓰지 않는 AWS S3 설정 제거 - #32

Draft
junha6316 wants to merge 1 commit into
developfrom
BE-3114
Draft

junha6316 wants to merge 1 commit into
developfrom
BE-3114

Conversation

@junha6316

@junha6316 junha6316 commented Oct 25, 2026 •

Copy link
Copy Markdown

요약

CodePush 서버에 남아 있던 AWS S3 설정을 지웁니다. 동작은 바뀌지 않습니다.

배경

  • 2025-05-15 커밋 2c562bd에서 저장소를 S3에서 R2로 되돌린 뒤로 AWS 설정은 쓰이지 않습니다.
  • 다운로드 주소 서명은 src/storage/blob.ts:31-34가 R2 키로 합니다. 10/25 운영 Worker에 업데이트 확인 요청을 보내 R2 주소가 내려오는 것도 확인했습니다.
  • 이 설정이 가리키던 IAM 키는 2025-05-16 이후 쓰이지 않았고, 따로 삭제합니다(brotli 취약점 점검 중 Lambda 코드에 하드코딩된 것을 발견).

변경 사항

  • apps/server/wrangler.toml: production vars에서 AWS_REGION, AWS_S3_BUCKET_NAME을 지웁니다.
  • apps/server/src/types/env.ts: AWS_* 타입 4개를 지웁니다.
  • apps/server/.env.example: AWS_* 2줄을 지웁니다.

src/storage/s3.ts와 @aws-sdk/client-s3는 생성하는 곳이 없지만 이번 범위에서 뺐습니다. 환경 변수를 직접 읽지 않아 이 변경과 관계없습니다.

확인

  • pnpm typecheck, pnpm check, pnpm test(127개) 통과
  • 지운 변수를 읽는 곳이 apps/server, apps/web, 테스트 설정 어디에도 없음(리뷰 agent 확인)

배포 뒤 할 일

  • vars는 다음 배포 때 Worker에서 빠집니다.
  • 운영 Worker에 AWS 키가 secret으로 남아 있으면 pnpm secrets:list:production으로 확인한 뒤 wrangler secret delete로 지웁니다.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NZWWpGhXhiJtUZzuLNqows

2025-05 저장소를 S3에서 R2로 되돌린 뒤 남은 AWS 변수와 타입을 지운다.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZWWpGhXhiJtUZzuLNqows
@junha6316 junha6316 self-assigned this Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant