Skip to content

Repository files navigation

terraform-aws

Personal AWS infrastructure managed with Terraform. Each top-level directory is a standalone root module with its own state.

Prerequisites

brew install terraform pre-commit
pre-commit install   # from repo root

Bootstrap order

Most stacks use remote state in S3 with DynamoDB locking. Set that up once before applying anything else.

Step Directory State Purpose
1 terraform-bootstrap/ Local Create S3 bucket kwm-terraform-state and DynamoDB table kwm-terraform-state-locks
2 Any other stack Remote (S3) terraform init then terraform apply
cd terraform-bootstrap
terraform init && terraform apply

After bootstrap, stacks configure the backend in versions.tf (bucket, key, DynamoDB table, us-east-1).

Disaster recovery (CloudFormation)

Use terraform-bootstrap-cf/ to recreate the backend and a recovery controller via CloudFormation. See:

About

Personal AWS infrastructure as Terraform

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages