Skip to content
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

Implement default include #3936

Open
dene14 opened this issue Feb 26, 2025 · 1 comment
Open

Implement default include #3936

dene14 opened this issue Feb 26, 2025 · 1 comment
Labels
enhancement New feature or request needs design We need to flesh out the design before we can resolve the issue

Comments

@dene14
Copy link

dene14 commented Feb 26, 2025

Describe the enhancement

Currently all of us have the pattern, where root.hcl or such is included in ALL project terragrunt.hcl file. So maybe we can introduce envvar and flag that would make possible to include specific file into each project?

Additional context

I'm using terragrunt across multiple different providers and "common" configuration has to be split in two files: root.hcl and provider.hcl whereas latter contains specific configuration for the provider.

@dene14 dene14 added the enhancement New feature or request label Feb 26, 2025
@yhakbar yhakbar added the needs design We need to flesh out the design before we can resolve the issue label Feb 26, 2025
@yhakbar
Copy link
Collaborator

yhakbar commented Feb 26, 2025

Hey @dene14 ,

I bet this would be very convenient functionality, but it wouldn't be simple to implement.

For example, let's say you have one terragrunt.hcl file that's reading another via read_terragrunt_config. Which one should do the include? Both? Neither? How would the parser know?

What happens if the same file is included twice, once in HCL and once via a flag?

How would a user joining a Terragrunt project know that there's an expectation for everyone to set the flag before using any of the units?

Marking this as needs design. It might be better to have an RFC for functionality this major.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs design We need to flesh out the design before we can resolve the issue
Projects
None yet
Development

No branches or pull requests

2 participants