├── .gitignore ├── LICENSE ├── README.md ├── accounts ├── -creation │ ├── accounts.sh │ ├── accounts.tf │ ├── data.tf │ ├── iam_role_assumption_into_accounts.tf │ ├── organisation.tf │ ├── output.tf │ ├── provider.tf │ ├── terraform.tf │ ├── terraform.tfvars │ ├── terraform_state_bucket_policy.tf │ ├── terragrunt.hcl │ └── variables.tf ├── -root │ ├── providers.tf │ ├── route53.tf │ ├── s3_bucket.tf │ ├── terraform.tf │ ├── terragrunt.hcl │ └── variables.tf ├── production │ ├── providers.tf │ ├── s3_bucket.tf │ ├── terraform.tf │ └── terragrunt.hcl └── staging │ ├── providers.tf │ ├── s3_bucket.tf │ ├── terraform.tf │ └── terragrunt.hcl ├── bootstrap ├── dynamodb_table.tf ├── iam.tf ├── providers.tf ├── s3_bucket.tf ├── terraform.tf ├── terraform.tfvars └── variables.tf ├── modules └── README.md └── terragrunt.hcl /.gitignore: -------------------------------------------------------------------------------- 1 | .terraform/ 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/README.md -------------------------------------------------------------------------------- /accounts/-creation/accounts.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/accounts/-creation/accounts.sh -------------------------------------------------------------------------------- /accounts/-creation/accounts.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/accounts/-creation/accounts.tf -------------------------------------------------------------------------------- /accounts/-creation/data.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/accounts/-creation/data.tf -------------------------------------------------------------------------------- /accounts/-creation/iam_role_assumption_into_accounts.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/accounts/-creation/iam_role_assumption_into_accounts.tf -------------------------------------------------------------------------------- /accounts/-creation/organisation.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/accounts/-creation/organisation.tf -------------------------------------------------------------------------------- /accounts/-creation/output.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/accounts/-creation/output.tf -------------------------------------------------------------------------------- /accounts/-creation/provider.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/accounts/-creation/provider.tf -------------------------------------------------------------------------------- /accounts/-creation/terraform.tf: -------------------------------------------------------------------------------- 1 | terraform { 2 | required_version = "~> 0.12" 3 | 4 | backend "s3" {} 5 | } 6 | -------------------------------------------------------------------------------- /accounts/-creation/terraform.tfvars: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/accounts/-creation/terraform.tfvars -------------------------------------------------------------------------------- /accounts/-creation/terraform_state_bucket_policy.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/accounts/-creation/terraform_state_bucket_policy.tf -------------------------------------------------------------------------------- /accounts/-creation/terragrunt.hcl: -------------------------------------------------------------------------------- 1 | include { 2 | path = find_in_parent_folders() 3 | } 4 | -------------------------------------------------------------------------------- /accounts/-creation/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/accounts/-creation/variables.tf -------------------------------------------------------------------------------- /accounts/-root/providers.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/accounts/-root/providers.tf -------------------------------------------------------------------------------- /accounts/-root/route53.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/accounts/-root/route53.tf -------------------------------------------------------------------------------- /accounts/-root/s3_bucket.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/accounts/-root/s3_bucket.tf -------------------------------------------------------------------------------- /accounts/-root/terraform.tf: -------------------------------------------------------------------------------- 1 | terraform { 2 | required_version = "~> 0.12" 3 | 4 | backend "s3" {} 5 | } 6 | -------------------------------------------------------------------------------- /accounts/-root/terragrunt.hcl: -------------------------------------------------------------------------------- 1 | include { 2 | path = find_in_parent_folders() 3 | } 4 | -------------------------------------------------------------------------------- /accounts/-root/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/accounts/-root/variables.tf -------------------------------------------------------------------------------- /accounts/production/providers.tf: -------------------------------------------------------------------------------- 1 | provider "aws" { 2 | region = "eu-west-1" 3 | } 4 | -------------------------------------------------------------------------------- /accounts/production/s3_bucket.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/accounts/production/s3_bucket.tf -------------------------------------------------------------------------------- /accounts/production/terraform.tf: -------------------------------------------------------------------------------- 1 | terraform { 2 | required_version = "~> 0.12" 3 | 4 | backend "s3" {} 5 | } 6 | -------------------------------------------------------------------------------- /accounts/production/terragrunt.hcl: -------------------------------------------------------------------------------- 1 | include { 2 | path = find_in_parent_folders() 3 | } 4 | -------------------------------------------------------------------------------- /accounts/staging/providers.tf: -------------------------------------------------------------------------------- 1 | provider "aws" { 2 | region = "eu-west-1" 3 | } 4 | -------------------------------------------------------------------------------- /accounts/staging/s3_bucket.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/accounts/staging/s3_bucket.tf -------------------------------------------------------------------------------- /accounts/staging/terraform.tf: -------------------------------------------------------------------------------- 1 | terraform { 2 | required_version = "~> 0.12" 3 | 4 | backend "s3" {} 5 | } 6 | -------------------------------------------------------------------------------- /accounts/staging/terragrunt.hcl: -------------------------------------------------------------------------------- 1 | include { 2 | path = find_in_parent_folders() 3 | } 4 | -------------------------------------------------------------------------------- /bootstrap/dynamodb_table.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/bootstrap/dynamodb_table.tf -------------------------------------------------------------------------------- /bootstrap/iam.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/bootstrap/iam.tf -------------------------------------------------------------------------------- /bootstrap/providers.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/bootstrap/providers.tf -------------------------------------------------------------------------------- /bootstrap/s3_bucket.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/bootstrap/s3_bucket.tf -------------------------------------------------------------------------------- /bootstrap/terraform.tf: -------------------------------------------------------------------------------- 1 | terraform { 2 | required_version = "~> 0.12" 3 | } 4 | -------------------------------------------------------------------------------- /bootstrap/terraform.tfvars: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/bootstrap/terraform.tfvars -------------------------------------------------------------------------------- /bootstrap/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/bootstrap/variables.tf -------------------------------------------------------------------------------- /modules/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/modules/README.md -------------------------------------------------------------------------------- /terragrunt.hcl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robbytaylor/terraform-aws-accounts-reference/HEAD/terragrunt.hcl --------------------------------------------------------------------------------