A generic remote state storage generator.
|
2 vuotta sitten | |
---|---|---|
.gitignore | 2 vuotta sitten | |
.pre-commit-config.yaml | 2 vuotta sitten | |
.terraform.lock.hcl | 2 vuotta sitten | |
.tflint.hcl | 2 vuotta sitten | |
.tfsec.yaml | 2 vuotta sitten | |
README.md | 2 vuotta sitten | |
backend.tf | 2 vuotta sitten | |
config.tf | 2 vuotta sitten | |
dynamodb.tf | 2 vuotta sitten | |
output.tf | 2 vuotta sitten | |
provider.tf | 2 vuotta sitten | |
required_providers.tf | 2 vuotta sitten | |
s3.tf | 2 vuotta sitten |
Creates an S3 bucket and a dynamodb table for terraform remote state storage.
If this is your first time using this module, remove the backend.tf
file, then create fresh via:
terraform apply
backend.tf
backend.tf
and copy the bucket
name to the key
name.terraform init
. Answer YES to whether to copy the backend.tfrm terraform.tfstate*
terraform apply
Run terraform output
to get the config, and copy it as a backend.tf
in your other projects. Be careful not to reuse the key.
Once you've migrated the backend to s3, you probably do not want to make changes. Do so at your own risk.
Name | Version |
---|---|
terraform | >= 1.0 |
aws | ~> 4.0 |
Name | Version |
---|---|
aws | 4.34.0 |
No modules.
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 |
No inputs.
Name | Description |
---|---|
backend_tf | n/a |