Terraform module for configuring an S3 backend for Terraform.
This module creates a versioned S3 bucket for storing Terraform state files, along with a DynamoDB table that enables Terraform to aquire a lock when running. After running the module, you can then use the S3 storage backend as follows:
terraform {
backend "s3" {
bucket = "<state bucket name>"
dynamodb_table = "<lock table>"
key = "<project-name>"
region = "<bucket region>"
}
}
Note: project-name
must be unique across all Terraform projects using the bucket
This project is licensed under the MIT License. See the License
file for more information.
Chathan Driehuys (chathan@driehuys.com)