-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Unable to apply multiple modules at once. #3181
Comments
Looks like |
Hi,
https://terragrunt.gruntwork.io/docs/reference/built-in-functions/#find_in_parent_folders |
This appears to still be an issue, and it seems using the structure in this repo and from the docs doesn't work with Terragrunt. I'm using: ❯ terragrunt --version
terragrunt version 0.66.9 Here is my directory layout: ~/tmp/example on ☁️ materer-dev (us-east-1)
❯ tree
.
├── dev
│ ├── account.hcl
│ └── key
│ └── terragrunt.hcl
├── prod
│ ├── account.hcl
│ └── key
│ └── terragrunt.hcl
└── terragrunt.hcl
5 directories, 5 files And the files:
And the error I get:
|
That a fundamental command doesn't work with their own example repo and the total lack of response in this thread, really puts me off Terragrunt. Given this doesn't work, really throws a wrench in any sane CI configuration. |
Hey, I'm sorry about that @BeyondEvil . We're taking that comment seriously. If you'd like, join our Discord and chat with me personally about the issue that you're facing so we can get you resolution quickly. I'm reviewing this issue now to get caught up. |
We chatted in Discord, and @BeyondEvil 's issues have been resolved. I'll post an update here shortly to address what we discussed, and how we'll be taking action to improve the state of our examples in the future. |
I have to say, I'm SUPER IMPRESSED! During my 15+ years in this industry and 10+ years in retail sales before that, I don't think I've ever experienced this level of "customer service". 11/10 would recommend! ❤️ |
To recap our discussion, with a bit of extra context: The example repo currently uses a In the past, this has been mitigated by having Terragrunt ignore any We fixed @BeyondEvil 's configurations by having them rename the root terragrunt run-all --terragrunt-exclude-dir . plan To prevent new Terragrunt users experiencing this kind of issue going forward, I'll be cutting a PR to the example repo to rename the root In addition, to prevent the proliferation of the current idiomatic configuration, and to make it clear to users that they're following an anti-pattern, I'll be proposing the addition of a strict control to Terragrunt so that folks stop using a root Given that this has been idiomatic for a very long time, this may take some time. It will likely not make the cut for Terragrunt 1.0, but it's something we can start emitting warnings on soon so that folks adjust their configurations in anticipation of a 2.0. |
Appreciate the followup! I actually already implemented a Thanks again! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for raising this issue. |
Describe the bug
Our terragrunt file structure is the following, top level is the application name, 2nd level is account & 3rd is the region. E.g.
Top Level = example_app
2nd Level = example_account
3rd Level = example_region
Would look like
We define what the application terraform should look like at the application/top level like so
child terragrunt.hcl files are located at
app_name/account_name/region_name/terragrunt.hcl
. And are simple terragrunt files that have an include block for the root terragrunt configuration (defined at the application/top level). In our root terragrunt configuration we define the above locals for all children, basic things like project/app level locals, account level & region level locals.The issue is we are unable to use the
run-all
command to apply multiple accounts/regions at any given time as theterragrunt run-all <operation>
command first validates/tries to run the root level terragrunt file which is invalid on it's own as the account & region level locals do not exists in that context.Running plan/apply operation at the region level works correctly as it finds the child
terragrunt.hcl
Expected behavior
Be able to run the
run-all
command from the top/application levelThe text was updated successfully, but these errors were encountered: