Skip to content

Chore: Terraform 기반 AWS 인프라 구축 (#38) - #37

Merged
xYunaL merged 4 commits into
devfrom
chore/#38-terraform
Sep 5, 2026
Merged

Chore: Terraform 기반 AWS 인프라 구축 (#38)#37
xYunaL merged 4 commits into
devfrom
chore/#38-terraform

Conversation

@xYunaL

@xYunaL xYunaL commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

🔗 Related Issue

🚀 Key Changes

  • Azure 프로비저닝 스크립트의 legacy-azure/ 이관
  • Terraform .gitignore 및 CI paths-ignore 추가
  • AWS 인프라 전체 Terraform 코드화

구성

영역 리소스
네트워크 VPC 10.0.0.0/16, 퍼블릭·프라이빗 서브넷 2AZ, IGW, S3 Gateway 엔드포인트, SG 2종
데이터 RDS PostgreSQL 16 (Single-AZ, 백업 7일), S3 (버저닝, lifecycle)
컴퓨팅 ECS 클러스터, ASG(t4g.small), 캐패시티 프로바이더, 태스크 정의 2컨테이너
엣지 CloudFront, ACM(us-east-1), OAC
보안 IAM 역할 4종, GitHub OIDC 연동, SSM SecureString 7개
운영 CloudWatch 로그(보존 7일), Budgets 알림

주요 결정

  • NAT Gateway 미사용 — 퍼블릭 서브넷 + SG 인바운드 차단으로 대체.
  • ALB 미사용
  • API 서브도메인 분리 — api.han-spoon.site

✅ 검증

  • terraform validate / fmt -check
  • terraform apply 66개 리소스 생성
  • CloudFront → SG(8080) → EC2 경로 HTTP 200 확인
  • 메모리 실측 반영: backend 640MB / ai 768MB (t4g.small 2GB)

@xYunaL xYunaL self-assigned this Sep 5, 2026
@xYunaL xYunaL linked an issue Sep 5, 2026 that may be closed by this pull request
@xYunaL
xYunaL merged commit d514a5e into dev Sep 5, 2026
1 check passed
@xYunaL
xYunaL deleted the chore/#38-terraform branch September 5, 2026 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CHORE] Terraform 기반 AWS 인프라 구축 및 환경 설정

1 participant