by shigemk2

当面は技術的なことしか書かない

terraform backend s3

Stores the state as a given key in a given bucket on Amazon S3. This backend also supports state locking and consistency checking via Dynamo DB, which can be enabled by setting the dynamodb_table field to an existing DynamoDB table name. A single DynamoDB table can be used to lock multiple remote state files. Terraform generates key names that include the values of the bucket and key variables.

tfstateをS3で管理するだけじゃなくてstateロック状態をdynamodbがチェックしてくれるらしい

developer.hashicorp.com