{"repo":"cloudposse/terraform-aws-tfstate-backend","free":true,"listed":false,"github":"https://github.com/cloudposse/terraform-aws-tfstate-backend","clone":"git clone https://github.com/cloudposse/terraform-aws-tfstate-backend.git","description":"Terraform module that provision an S3 bucket to store the `terraform.tfstate` file and a DynamoDB table to lock the state file to prevent concurrent modifications and state corruption.","language":"HCL","stars":443,"topics":["terraform","terraform-module","aws","tfstate","dynamodb","locking","aws-dynamodb","terraform-modules","dynamodb-table","s3-bucket"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"Terraform module to provision an S3 bucket to store terraform.tfstate file and a DynamoDB table to lock the state file to prevent concurrent modifications and state corruption. The module supports the following: 1. Forced server-side encryption at rest for the S3 bucket 2. S3 bucket versioning to allow for Terraform state recovery in the case of accidental deletions and human errors 3. State locking and consistency checking via DynamoDB table to prevent concurrent operations 4. DynamoDB server-side encryption https://www.terraform.io/docs/backends/types/s3.html NOTE: The operators of the module (IAM Users) must have permissions to create S3 buckets and DynamoDB tables when performing terraform plan and terraform apply NOTE: This module cannot be used to apply changes to the mfa delete feature of the bucket. Changes regarding mfa delete can only be made manually using the root credentials with MFA of the AWS Account where the bucket resides. Please see: https://github.com/terraform-providers/terraform-provider-aws/issues/629 [!TIP] #### 👽 Use Atmos with Terraform Cloud Posse uses atmos to easily orchestrate multiple environments using Terraform. Works with Github Actions, Atlantis, or Spacelift. Watch demo of using Atmos with Terraform Example of running atmos to manage infrastructure from our Quick Start tutorial. Usage Create Follow this procedure just once to create your deployment. 1. Add the terraform state backend module to your main.tf file. The comment will help you r","default_branch":null,"files":null,"tree":[],"storefront":"/r/cloudposse","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cloudposse/terraform-aws-tfstate-backend/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}