-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
CFN: add validation in GetAtt for conditionally canceled resources #13213
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
Conversation
Test Results - Alternative Providers575 tests - 775 330 ✅ - 371 26m 17s ⏱️ - 13m 9s Results for commit 013242b. ± Comparison against base commit 77b0748. This pull request removes 775 tests.♻️ This comment has been updated with latest results. |
dominikschubert
left a comment
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.
Given that this fixes an immediate issue, I'm proposing we move forward with the fix here. 👍
I'd like to circle back to this soon though to see if we could find a better solution for raising these exceptions. Intuitively it seems this might not be the ideal location in the engine to raise them, as we might need to duplicate the effort here. 🤔 I'm not familiar enough yet with the engine though, to give more useful advice on alternatives, so again, let's circle back on this
| topic_name = f"test-topic-{short_uid()}" | ||
| ssm_param_name = f"test-param-{short_uid()}" |
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.
nit: Both of these names are not actually necessary for this test and removing them + the name parameters from the template would simplify the test. This in turn makes it easier to focus on the core concept you'd like to test, which is the reference to a resource with a condition evaluating to false.
Yes. This is something that @simonrw and I have been discussing. We have been raising ValidationErrors in the Preprocessor class but we believe they should be part of Validator class. Hopefully we will find a solution soon. |
Motivation
This PR adds a validation that the resource should be deployed when retrieving attributes with Fn::GetAtt
Changes
Testing