A generic remote state storage generator.

Fred Damstra (Macbook 2015) 0933bc2c37 Final state before storing backend преди 2 години
.gitignore f2030e1ede Initial commit преди 2 години
.pre-commit-config.yaml 003b411e2b Adds dynamodb преди 2 години
.terraform.lock.hcl f2030e1ede Initial commit преди 2 години
.tflint.hcl f2030e1ede Initial commit преди 2 години
.tfsec.yaml 003b411e2b Adds dynamodb преди 2 години
README.md 0933bc2c37 Final state before storing backend преди 2 години
config.tf 0933bc2c37 Final state before storing backend преди 2 години
dynamodb.tf 9e8984b10a Made dynamodb optional преди 2 години
output.tf 0933bc2c37 Final state before storing backend преди 2 години
provider.tf f2030e1ede Initial commit преди 2 години
required_providers.tf f2030e1ede Initial commit преди 2 години
s3.tf 0933bc2c37 Final state before storing backend преди 2 години

README.md

Terraform Remote State

Creates an S3 bucket and a dynamodb table for terraform remote state storage.

Table of Contents

  1. Usage
  2. Requirements
  3. Providers
  4. Inputs
  5. Outputs

Usage

First Time Creation

If this is your first time using this module, remove the backend.tf file, then create fresh via:

terraform apply

Save the output as backend.tf (replacing the key with a unique string), and run terraform apply again to migrate the state of this module back to S3.

You can use the output again in other projects.

If you wish to recreate, do not update the config. You must terraform destroy, remove backend.tf, make changes, then terraform apply

Requirements

Name Version
terraform >= 1.0
aws ~> 4.0

Providers

Name Version
aws 4.34.0

Modules

No modules.

Resources

Name Type
aws_dynamodb_table.lock_table resource
aws_s3_bucket.state_storage resource
aws_s3_bucket_acl.state_storage resource
aws_s3_bucket_lifecycle_configuration.state_storage resource
aws_s3_bucket_public_access_block.state_storage resource
aws_s3_bucket_server_side_encryption_configuration.state_storage resource
aws_s3_bucket_versioning.state_storage resource

Inputs

No inputs.

Outputs

Name Description
backend_tf n/a