Initilizes a fresh AWS account with a S3 state bucket, Lock Table on DynomoDB and a Route53 hosted zone
HCL
tf_aws_account_initializer
The GitHub repository tf_aws_account_initializer contains Terraform scripts to initialize an AWS account to use with Terraform with the following resources:
Resource
Description
S3 Bucket
For storing Terraform state.
DynamoDB Table
For state locking to prevent simultaneous updates.
Route 53 Hosted Zone
For DNS management.
This Terraform is intended to run once with no state.
Security considerations
This Terraform was validated using Trivy. You'll find the report in SECURITY.
It is intended not to use customer managed encryption keys.
Bucket logging is disabled.
Point-in-time recovery is not enabled since it's just a terraform state which can be changed by terraform itself.