Terraform 入門 Backend設定を定義するサンプル

環境
Terraform

ファイル名:backedn.tf
使用例

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
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バケットで管理するための設定です。

Terraform

Posted by arkgame