-
-
Notifications
You must be signed in to change notification settings - Fork 221
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
fix: Fixed the for_each value depends on resource attributes that cannot be determined until apply #72
Conversation
When working on my previous PR, I didn't consider this:
Then the code in examples/complete that simulates Terragrunt is not a good simulation because it uses values not known yet. With known values for the Terragrunt simulation, |
@flora-five Thanks for the update. I will try to find time later tonight to try to run an example with your commit. I will make sure to provide static values (known values) for the example for Terragrunt. |
# See details: https://github.com/gruntwork-io/terragrunt/issues/1211 | ||
records = try(jsondecode(var.records_jsonencoded), var.records) | ||
records = concat(var.records, try(jsondecode(var.records_jsonencoded), [])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@flora-five THIS concat
was the magic solution! Thank you very much for figuring it out!
### [2.8.1](v2.8.0...v2.8.1) (2022-06-19) ### Bug Fixes * Fixed the for_each value depends on resource attributes that cannot be determined until apply ([#72](#72)) ([e6fe5ba](e6fe5ba))
This PR is included in version 2.8.1 🎉 |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
It is still not working, and after wasting more than 20 hours on fixing #59 ... I give up (for now)...If anyone likes challenges, please try to finish this PR.All information and "definition of done" is modules/records/main.tf.Huge thanks to @flora-five for figuring out the working solution.
Fixes #59