Repository navigation
feat: 관측 인프라 Terraform 모듈 골격 구성 (1/5) - #234
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
이번 PR 범위에는 포함하지 않아도 괜찮지만, 후속 작업으로 terraform fmt -check와 validate를 자동 실행하는 CI도 추가하면 좋을 것 같습니다. |
이번 PR범위에는 넣기 애매해 보여서 추후에 후속 이슈로 생각을 해봐야 할듯합니다. |
- SSH 인바운드 소스를 VPC CIDR에서 앱 서버 Security Group ID로 변경 - 환경과 모듈에 app_server_security_group_id 입력 및 형식 검증 추가 - tfvars 예제를 동기화하고 관측 서비스 CIDR 설명 정리 - 검증: terraform apply 완료 및 git diff --cached --check 통과
- Loki와 OTLP 인바운드 소스를 앱 서버 Security Group으로 제한 - 내부 통신 및 SSH 터널로 대체되는 Grafana, Prometheus, Node Exporter 인바운드 제거 - 미사용 allowed_vpc_cidr 입력과 예제 설정 정리 - 검증: git diff --cached --check 통과, Terraform apply 완료
|
수고하셨습니다. |
🔗 이슈 링크 (필수)
🧩 이 PR의 변경사항 (필수)
전체 중 위치 (Stacked PR 시)
이 PR에서 변경한 것
observability_ec2module 추가subnet_id에서 자동 조회하도록 구성.terraform/제외 규칙 추가node-01로 구성✅ AC (이 PR 범위만) (필수)
init/fmt -check -recursive/validate/plan이 가능하다.0.0.0.0/0)에 공개되는 인바운드 규칙은 생성하지 않는다.subnet_id로 조회한 VPC에 생성되며 별도vpc_id또는allowed_vpc_cidr입력을 요구하지 않는다.🧪 테스트 결과 (필수)
로컬
init성공fmt -check -recursive성공validate성공plan에서 의도한 인바운드 규칙 교체 및 제거 확인apply완료CI
Smoke 테스트
🧭 영향 범위 체크 (필수)
💬 리뷰 포인트 (필수)
modules/observability_ec2/main.tf,environments/dev/main.tfsubnet_id로 조회하며 별도vpc_id를 입력하지 않음