chore: ECR MUTABLE → IMMUTABLE (#63)#64
Merged
Merged
Conversation
동일 태그 덮어쓰기를 막아 배포 이미지 추적성·공급망 안전성 확보. 주의: :latest 재push가 거부되므로 커밋 SHA 태그 전환이 동반되어야 함. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #63
변경
terraform/ecr.tf:image_tag_mutability = "IMMUTABLE"(backend/frontend/ai 3개 레포 공통, for_each)동일 태그에 다른 이미지를 덮어쓰지 못하게 해 배포 이미지 추적성·공급망 안전성 확보. (코드리뷰 #19/#24)
IMMUTABLE은 이미 존재하는 태그로 push하면 거부한다.
:latest를 사용 → CI가:latest를 두 번째로 push하면 실패한다.:latest→ 커밋 SHA 태그 전환(CI push + kustomizeimages:)이 동반되어야 한다. (별도 작업):latest이미지가 있으면terraform apply시 레포 설정만 바뀌고 기존 이미지는 유지되나, 이후 같은 태그 push가 막힘.검증
terraform fmt통과. (적용은 EKS/AWS 환경에서terraform plan으로 확인 권장 — 기존 레포의 mutability 변경은 in-place 업데이트)🤖 Generated with Claude Code