-
-
Notifications
You must be signed in to change notification settings - Fork 971
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
Initalizing dependencies fails when state is encrypted #3495
Comments
When running with debug logging I see
The encryption config for B is added via a I think the main difference between the example and my real environment is the example using local state. |
Indeed! So my guess is remote state is accessed before the |
Hi, I bypass this was thinking about:
https://terragrunt.gruntwork.io/docs/reference/cli-options/#terragrunt-disable-bucket-update |
Describe the bug
When the state of a dependency is encrypted and the dependency is not initialised, any
terragrunt
command in the dependant module fails.Steps To Reproduce
terraform apply
in both.terragrunt plan
works in A.rm -rf .terragrunt-cache
in B.terragrunt plan
still works in Arm -rf .terraform-cache
again.terragrunt plan
in A.rm -rf .terraform-cache
.terragrunt plan
works again in A.I created a minimal example repo unfortunately in this minimal setup I can not reproduce the issue.
Any advice what I should look out for in my real production setup, that could make the difference?
Expected behavior
State encryption does not alter the behaviour of dependencies
Versions
If you need further details I am happy to help out.
The text was updated successfully, but these errors were encountered: