tfstate-backend
binbashar/tfstate-backend/aws
Terraform Module: Terraform Backend Overview 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. AWS Org implementation example We have a tfstate S3 Bucket per account Releases - Versions: = 1.x.y (Terraform 0.12.x compatible) - eg: https://registry.terraform.io/modules/binbashar/tfstate-backend/aws/1.0.0 Requirements | Name | Version | |------|---------| | terraform | >= 1.1.9 | | aws | ~> 5.0 | Providers | Name | Version | |------|---------| | aws | 5.21.0 | | aws.primary | 5.21.0 | | aws.secondary | 5.21.0 | | local | 2.4.0 | | time | 0.9.1 | Modules No modules. Resources | Name | Type | |------|------| | aws_cloudwatch_metric_alarm.dynamodb_capacity | resource |
| Name | Type | Description | Default |
|---|---|---|---|
| block_public_policy | bool | Whether Amazon S3 should block public bucket policies for this bucket. | true |
| namespace | string | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or ' | "" |
| kms_key_rotation | bool | Specifies whether key rotation is enabled | true |
| mfa_delete | bool | A boolean that indicates that versions of S3 objects can only be deleted with MF | false |
| mfa_secret | string | The numbers displayed on the MFA device when applying. Necessary when mfa_delete | "" |
| regex_replace_chars | string | Regex to replace chars with empty string in `namespace`, `environment`, `stage` | "/[^a-zA-Z0-9-]/" |
| bucket_lifecycle_transition_glacier | number | Number of days after which to move the data to the GLACIER storage class | 60 |
| backend_config_filepath | string | Directory where the backend configuration file should be generated. | "" |
| name | string | Solution name, e.g. 'app' or 'jenkins' | "terraform" |
| ignore_public_acls | bool | Whether Amazon S3 should ignore public ACLs for this bucket. | true |
| notifications_events | list(string) | List of events to enable notifications for | [
"s3:ObjectCreated:*",
"s3:ObjectRe |
| bucket_lifecycle_transition_standard_ia | number | Number of days after which to move the data to the STANDARD_IA storage class | 30 |
| backend_config_template_file | string | Path to the template file to use when generating the backend configuration. | "" |
| backend_config_filename | string | Name of the backend configuration file to generate. | "backend.tf" |
| environment | string | Environment, e.g. 'prod', 'staging', 'dev', 'pre-prod', 'UAT' | "" |
| stage | string | Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'r | "" |
| delimiter | string | Delimiter to be used between `namespace`, `environment`, `stage`, `name` and `at | "-" |
| context | map(string) | Default context to use for passing state between label invocations | {} |
| write_capacity | number | DynamoDB write capacity units | 5 |
| force_destroy | bool | A boolean that indicates the S3 bucket can be destroyed even if it contains obje | false |
| … and 10 more inputs | |||
dynamodb_table_arn — DynamoDB table ARNs3_bucket_domain_name — S3 bucket domain names3_bucket_id — S3 bucket IDs3_bucket_arn — S3 bucket ARNdynamodb_table_name — DynamoDB table namedynamodb_table_id — DynamoDB table IDAzure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,