Skip to content

Instantly share code, notes, and snippets.

@kwilczynski
Last active November 7, 2022 13:07
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save kwilczynski/0da8aec44f3197e9ca7a7c9e4a9aa247 to your computer and use it in GitHub Desktop.
Save kwilczynski/0da8aec44f3197e9ca7a7c9e4a9aa247 to your computer and use it in GitHub Desktop.
Terraform structure (example)
.
├── common
│   └── s3-buckets
│   ├── main.tf
│   ├── outputs.tf
│   ├── provider.tf
│   ├── terraform.tfvars
│   ├── terraform.tfvars.sample
│   └── variables.tf
├── environments
│   ├── ci
│   ├── management
│   │   ├── files
│   │   │   └── user-data.sh
│   │   ├── templates
│   │   │   └── script.sh.tpl
│   │   ├── iam.tf
│   │   ├── instances.tf
│   │   ├── key-pairs.tf
│   │   ├── main.tf
│   │   ├── outputs.tf
│   │   ├── peering.tf
│   │   ├── provider.tf
│   │   ├── security-groups.tf
│   │   ├── terraform.tfvars
│   │   ├── terraform.tfvars.sample
│   │   └── variables.tf
│   ├── production
│   └── staging
├── modules
│   └── network
│   ├── bastion
│   │   ├── main.tf
│   │   ├── outputs.tf
│   │   └── variables.tf
│   ├── nat
│   │   ├── main.tf
│   │   ├── outputs.tf
│   │   └── variables.tf
│   ├── network-acls
│   │   ├── main.tf
│   │   ├── outputs.tf
│   │   └── variables.tf
│   ├── private-subnet
│   │   ├── main.tf
│   │   ├── outputs.tf
│   │   └── variables.tf
│   ├── public-subnet
│   │   ├── main.tf
│   │   ├── outputs.tf
│   │   └── variables.tf
│   ├── vpc
│   │   ├── main.tf
│   │   ├── outputs.tf
│   │   └── variables.tf
│   ├── main.tf
│   ├── outputs.tf
│   └── variables.tf
├── .editorconfig
├── .gitattributes
├── .gitignore
├── .rubocop
├── AUTHORS
├── CHANGELOG.md
├── COPYRIGHT
├── Gemfile
├── LICENSE
├── Makefile
├── README.md
└── Rakefile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment