-
Notifications
You must be signed in to change notification settings - Fork 96
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
[BUG] terramate create --all-terragrunt
error with nested stacks
#1774
Comments
terramate create --all-terragrunt
error with nested stacks
Thanks for reporting this. We will look at this and get back to you asap! |
Thanks! Can't share code to reproduce easily, sorry. |
Hey @ohmer can you check if the branch in this PR fixes the issue? I managed to reproduce it in parent-child case but maybe it's not the same case you are getting. To install the branch, you can do:
You can also export Let me know if it works. |
Awesome, will do ASAP! |
Looks better, but not a fix I believe. How I tested:
FYI
On the cyclic dependency:
Since |
Hi @ohmer, Sorry for the long delay to have this fixed. So the original reported problem is solved in the linked PR but the second one is actually not possible in Terramate.
yes, Terramate has the filesystem ordering enabled by default and then you cannot have a stack that depends on stacks defined in its child directories. So for the moment, we are gonna throw an error if this is seen during the |
Hi @i4ki
No worries at all, I understand the complexity of the matter and there is no pressuring issue on my end. I want to demonstrate the value of Terramate CLI vs Terragrunt but this is not going to be a switch that will be made anytime soon anyway.
An error feels like the right call to me. I think the most important outcome here is to ease adoption of Terramate. You pointed out an incompability between the tools in a certain use case. I would find it perfectly acceptable to keep it as an error long term as disabling the filesystem ordering feels quite intrusive. I'd rather keep Terramate simple and lean rather than bending it to Terragrunt's will. An error would indicate that the Terragrunt code base needs to be refactored to be convertible to Terramate. Sounds good enough to me! Some documentation update would help adopters. |
Describe the bug
Terramate does not exclude implicit nested stacks from
after
field generating invalid stack dependency graph.To Reproduce
Steps to reproduce the behavior:
terramate create --all-terragrunt
. Terramate adds parent inafter
list instack.tm.hcl
terramate list --run-order
throwsInvalid stack configuration > cycle detected
Expected behavior
Produce a valid dependency graph exclucing parent stack from Terramate dependency graph since its implicit.
Log Output
Add logs from Terramate to help debug your problem.
Environment
14.5
2.45.2
0.9.0
Additional context
I love Terramate, happy to help! Thanks for putting such a great tool out there!
The text was updated successfully, but these errors were encountered: