-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Fix: CFn: mappings with references #11539
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
5960836
to
52d90ec
Compare
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.
It's good that our template deployer now supports many CloudFormation features. In the future we should consider refactoring this function to improve readability and maintainability.
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.
Definitely, if we are going to do the same level of input valuation and error reporting that this one does
describe_res = aws_client.sns.get_topic_attributes(TopicArn=topic_arn) | ||
snapshot.match("topic-attributes", describe_res) |
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: These lines seem unnecessary for the test. Maybe a positive and a negative deployment could have more value in this situation .
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.
Good point, thanks!
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.
LGTM. Just some nits.
52d90ec
to
8449252
Compare
Motivation
A customer presented an error which involved a
FindInMap
in aCondition
. TheFindInMap
usesRef
s for its map and top level keys, which raised an error:Changes