-
Notifications
You must be signed in to change notification settings - Fork 456
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: Avoid unstable fqn for TerraformElements #1779
Conversation
@x3cion thanks for putting this together. This should resolve #1656. |
I looked through the child classes and the only exception I found to the fqn generation was My reasoning behind caching the token was, considering how Let me know if I should change the implementation. |
The internals of
That is correct. Good catch there. I'll need to make some adjustments to #1725 to account for these changes, but that will probably be a separate PR after they are both merged. |
@jsteinich the point about This makes the test fail:
I was also guessing it works like that when I investigated the code. The entry is actually only cached on the token itself by |
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.
Thank you for improving this @x3cion 🎉
Found only two small things, nothing major.
@x3cion Let's get this merged! Do you want to rebase this branch onto |
Co-authored-by: Ansgar Mertens <[email protected]>
Co-authored-by: Ansgar Mertens <[email protected]>
@ansgarm I rebased now, you'll need to merge, though. :) |
Will do, once CI passed 👍 |
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've 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. |
Hi,
when using
dependsOn
to depend on a resource with overwritten logical id, the fqn does not fit the resource anymore, as it is generated within the constructor. I took an approach to stabilizing the fqn and also avoiding potential problems when using the fqn before changing the id.This change might be a breaking change.
Let me know if you need any more infos!