-
-
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
Terragrunt can't find outputs in dependency #3321
Comments
Maybe in addition: I reduced the However, the issue still remained, so I guess it has not so much to do with the sheer number of |
Seems we are also hit by this issue (terragrunt 0.66.1). Interesting thing is: when I temporarily change to "skip=false" in dependency, then run "terragrunt plan" (which I believe fetches the output of dependency), then, after restoring to "skip=true" - output is visible and is used. |
Hmm interesting. Let me do some tests here as well. However, I woud argue that if you have a |
"dependent module, then it would make sense to not fetch the outputs right? " It's complicated. :) We use this to make some configuration tests. And skips is used to tell "we do not want to test this big and complicated module" now, but we want to check modules which depends on it. |
@gercograndia, @kjonca, Guys, can you provide the simplest possible configuration to reproduce the issue? |
Hi @levkohimins, I'll see if we can reproduce it (tomorrow) in a as simple as possible setup but in our case it will never be easy. I think the situation is as follows:
I think the situation of @kjonca is different: trying to get hold of the |
Thanks @gercograndia, If you can't provide a simple configuration, that's not a problem, as long as it reproduces the issue. |
Here you go @levkohimins Assuming both Tested with terragrunt What this config does NOT show though, is the huge performance degradation introduced in |
Thank you very much @gercograndia. Let's solve the "no outputs" issue first, and then I'll try to look at the performance. |
Great, thanks a lot in advance. |
Any updates here guys? Got bitten by it again yesterday, as we had one last Took a while before I realised again that this was the same issue again, because first you start to check all your own configs. Pretty confusing bug actually. Was on version |
Hey @gercograndia , Take a look at the new exclude block we've introduced, which replaces the If you aren't aware, it's part of a larger suite of changes that you might also be interested in. |
Hi, was not aware of the I consider |
Describe the bug
A while ago, we upgraded to terragrunt version v0.58.2 in an azure environment, and were already noticing things were quite a bit slower than before.
But last week we ran into a confusing issue, where a particular module coulnd't resolve the
outputs
of a dependency, while it was definitely there.It must be said: this module had (by nature) quite a few dependencies, but all of them resolved fine except this one.
Inspecting the output of the said module showed that the outputs were definitely there. However, the
terragrunt output
command takes about 3 minutes, while just running plainterraform output
from the.terragrunt-cache
directory completes almost instantly (less than a second).The debug log mentioned that the dependency is skipped because it is disabled.
The dependency declaration itself didn't have a
enabled
attribute set, but theterragrunt.hcl
of the dependency does have askip
statement.Anyways, while testing earlier versions of terragrunt we noticed the following:
v0.55.1
is the last version that is both performant as well as properly resolving the dependencies.v0.55.2
andv0.55.3
has the described issue, but are still 'quick'.v0.55.5
another strange error popped up, but the plan is what we would expect:v0.55.6
that aforementioned error is gone, but the main issue (can't find the outputs) popped up. Also, it became very slow from this release onwards.We tried also some newer versions but that wasn't helpful either:
v0.66.1
) we got the following error:v0.60.x
no new issues, but the main 'outputs' issue was still there.We didn't put more effort into the newer versions yet, we might do that. We're also more than willing to test out a few things if that's going to be helpful.
Steps To Reproduce
Just changing the terragrunt version and run
terragrunt plan
.Expected behavior
It should resolve the outputs (and not be that slow :-)
Versions
Additional context
n/a
The text was updated successfully, but these errors were encountered: