Skip to content

What is the recommended folder structure for Terragrunt? #765

Answered by brikis98
brikis98 asked this question in How do I
Discussion options

You must be logged in to vote

One repo for infra-live and one for infra-modules, or combine them?

We recommend separate repos. The primary reason is so you can version your modules and run different versions of those modules in different environments: e.g., you might run v1.0.0 of your eks module in prod while testing out v2.0.0 of the eks module in stage. As described in module versioning:

The easiest way to create a versioned module is to put the code for the module in a separate Git repository and to set the source parameter to that repository’s URL. That means your Terraform code will be spread out across (at least) two repositories:

  • modules: This repo defines reusable modules. Think of each module as a “bluepri…

Replies: 4 comments 1 reply

Comment options

brikis98
Aug 31, 2023
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by brikis98
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sandrom
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants