Skip to content

Instantly share code, notes, and snippets.

@a-patel
Last active October 27, 2023 15:49
Show Gist options
  • Save a-patel/bdfb1ab798363284afbf9f6593fb7791 to your computer and use it in GitHub Desktop.
Save a-patel/bdfb1ab798363284afbf9f6593fb7791 to your computer and use it in GitHub Desktop.
Terraform Project Directory Structure
-- PROJECT-DIRECTORY/
-- modules/
-- <service1-name>/
-- main.tf
-- variables.tf
-- outputs.tf
-- provider.tf
-- README
-- <service2-name>/
-- main.tf
-- variables.tf
-- outputs.tf
-- provider.tf
-- README
-- ...other…
-- environments/
-- dev/
-- backend.tf
-- main.tf
-- outputs.tf
-- variables.tf
-- terraform.tfvars
-- qa/
-- backend.tf
-- main.tf
-- outputs.tf
-- variables.tf
-- terraform.tfvars
-- stage/
-- backend.tf
-- main.tf
-- outputs.tf
-- variables.tf
-- terraform.tfvars
-- prod/
-- backend.tf
-- main.tf
-- outputs.tf
-- variables.tf
-- terraform.tfvars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment