Terraform 원격 state와 학기별 배포 이름 규칙 추가 - #42
Merged
Merged
Conversation
pwh9882
force-pushed
the
infra/remote-state
branch
from
August 31, 2026 05:46
cb3330f to
262a519
Compare
pwh9882
force-pushed
the
infra/remote-state
branch
from
August 31, 2026 06:08
262a519 to
18ef9ab
Compare
pwh9882
marked this pull request as ready for review
August 31, 2026 12:21
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
개요
1.16.x를 사용하도록 버전 조건을 추가했습니다.prefix하나에서 배포 자원 이름을 파생하도록 정리했습니다.sql-2026-s2, 서비스 주소는sql.ddps.cloud입니다.Project,Deployment,ManagedBytag를 공통으로 적용했습니다.이름 규칙
다음 학기에는
IaC/var.tf의prefix한 곳만 변경합니다.현재 값에서 다음 이름이 파생됩니다.
sql-2026-s2-vpcsql-2026-s2-rds-aurora-serverless-clustersql-2026-s2-elasticache-serverlesssql-2026-s2-ctfd-armsql-2026-s2-ctfdsql-2026-s2-sql-judge/aws/ec2/sql-2026-s2/aws/ec2/sql-2026-s2-behaviorsql-2026-s2-sql-challengesql-2026-s2-logs-786382940258-ap-northeast-2로그 S3 bucket은 Terraform에서 생성하며 public access 차단,
BucketOwnerEnforced, SSE-S3를 적용합니다. 서비스 domain은 학기별 자원 이름과 분리하여sql.ddps.cloud로 유지합니다.Remote state
root module에는
backend "s3" {}선언만 포함합니다. 실제 bucket, key, region, lock, 암호화 및 profile 설정은 privateterraform init인자로 전달합니다.기존의 ignored
private_var.tf입력 방식은 유지합니다.검증
1.16.0terraform init -reconfigure통과terraform validate통과bash -n통과sql-2026-s2VPC, Aurora, Valkey, AMI, ECR, 로그 S3 및 CloudWatch 이름이 사용되지 않았음을 확인19 to add, 0 to change, 0 to destroy전체 plan은 AMI 존재 여부를 계산하는 기존
count표현식 때문에Invalid count argument에서 중단됩니다. 현재 코드 주석에 기재된 운영 방식에 따라 기반 인프라, AMI, 나머지 인프라를 단계별로 apply해야 합니다.현재 remote state에는 관리 자원이 없습니다. 실제 배포 전에는 CTFd 3.8.7 변경을 검토하여
main에 반영하고 단계별 plan을 다시 확인해야 합니다.