New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to organize some kind of resources in subdirectories #618
Comments
This sounds like more of a Terraform question than a Terragrunt question. See, for example, Terraform Modules, How to create reusable infrastructure with Terraform modules, and terragrunt-infrastructure-live-example. |
yeah, but the terraform state files managed is per module, right. I am think if we can manage the tf-state files per directory? Also, the module is more for the homogeneous resources, the sources in my directory could be different from one to the other. |
State is managed by Terragrunt, it's managed by Terraform, which does it on a per-folder basis. If you're breaking up your infrastructure just to make the code easier to read and follow, then create a bunch of small Terraform modules, and use the |
@brikis98 thanks for the response, I will need to think about a better way to structure my question |
Closing as this is primarily a Terraform question as opposed to Terragrunt. Please follow hashicorp/terraform#26177. Thanks! |
Right now I have resources sitting in one level (one module), as the resource files in the module grow, I can imagine it would helpful to have the resource files sitting in the subdirectories grouped by different reasons.
For example, currently resource files layout is like below
I want to transform into something like this
Let me know if this does make sense. Thanks!
The text was updated successfully, but these errors were encountered: