[Terraform]테라폼(terraform)state 관리(local,terraform cloud,s3)
이번 포스팅에서는 테라폼 상태(state)관리에 대해 알아보겠습니다. | 테라폼 상태(Terraform state)란? 테라폼 state 관리는 대표적으로 Local state 와 backend state로 나누어집니다. terraform init & terraform apply 명령어를 실행하면 다음과 같은 파일들이 생성됩니다. 다음과 같은 파일들은 local에서 관리됩니다. .terraform .terraform.lock.hcl terraform.tfstate .terraform.* 형태의 파일 : terraform init 명령어를 실행할 때 생성 terraform.tfstate: terraform apply 명령어 실행 후 생성 .terraform.lock.hcl은 잠금 파일이며 경쟁 상태에서 생..
AWS
2022. 3. 2. 19:23