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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI 실패 문제를 해결하기 위해
prevent_destroy를 제거하는 것은 이해됩니다. 하지만 이는TERRAFORM_OPERATIONS.md운영 가이드의 안전 수칙에 위배될 수 있으며, 향후img-resizer서비스가 의도치 않게 삭제될 위험을 만듭니다.이 변경이 상태 드리프트(state drift) 해결을 위한 일회성 조치라면,
prevent_destroy를 영구적으로 제거하는 대신 다음의 2단계 접근 방식을 고려하는 것이 더 안전합니다.prevent_destroy를 제거하여apply를 통해 상태를 바로잡습니다.prevent_destroy = true를 다시 추가하여 리소스 보호 설정을 복원합니다.이렇게 하면 현재 문제를 해결하면서도 장기적인 안정성을 유지할 수 있습니다.
References
docs/infra/TERRAFORM_OPERATIONS.md가이드라인(72라인)에서는 데이터 손실 및 서비스 중단을 방지하기 위해 주요 리소스의prevent_destroy속성 제거를 금지하고 있습니다. 이 규칙은 리소스가 실수로 삭제되는 것을 방지하는 중요한 안전장치입니다. (link)