1.https://docs.aws.amazon.com/ko_kr/cli/latest/userguide/getting-started-install.html
위의 홈페이지에서 윈도우즈 버전 설치 후 aws --version 명령어로 설치 확인
2. IAM에서 IAM 유저 생성 후 액세스키 발급
aws configure list-profiles
프로필 리스트 확인 명령어
aws configure --profile Vincent-dev
Vincent-dev 프로필을 사용할 것이기 때문에 configure에 프로필 추가
Remote tfstate 저장소 활용
https://developer.hashicorp.com/terraform/language/backend/s3
https://dewble.tistory.com/entry/terraform-backend-configuration
Backend Type: s3 | Terraform | HashiCorp Developer
Terraform can store state remotely in S3 and lock that state with DynamoDB.
developer.hashicorp.com
[Terraform]상태 저장소 설정하는 방법(Backend)
Terraform이 작업을 수행하면서 인프라의 현재 상태를 추적하기 위한 상태 파일 (terraform.tfstate)을 생성하게 되는데, 이 상태 파일의 관리 방식에 따라 로컬 상태(Locate State)와 원격 상태(Remote State)로
dewble.tistory.com
특이 사항으로, S3 bucket 사용 시 버킷 이름에 대문자를 사용할 수 없음
providers.tf 파일 s3 블록에 명시해놓은 bucket 이름역시 Vincent-dev-tfstate 에서 vincent-dev-tfstate로 변경함
'Cloud' 카테고리의 다른 글
EBS 최적화 (EBS-Optimized) (0) | 2024.10.10 |
---|---|
AWS Spot Instances (1) | 2024.10.10 |
Amazon VPC CNI (5) | 2024.10.10 |
AWS CoreDNS (2) | 2024.10.10 |
[VPC] 서브넷 로드밸런서 태그 (0) | 2024.09.20 |