Terraform 入門 Backend設定を定義するサンプル
環境
Terraform
ファイル名:backedn.tf
使用例
terraform {
backend "s3" {
bucket = "dev-tfstate"
key = "ecr/terraform.tfstate"
region = "ap-northeast-1"
profile = "test-dev"
}
}
terraform {
backend "s3" {
bucket = "dev-tfstate"
key = "ecr/terraform.tfstate"
region = "ap-northeast-1"
profile = "test-dev"
}
}
terraform { backend "s3" { bucket = "dev-tfstate" key = "ecr/terraform.tfstate" region = "ap-northeast-1" profile = "test-dev" } }
説明
tfstateファイルをS3バケットで管理するための設定です。