-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat: Add support for FindInMap in serverless app plugin #856
Conversation
Please fix the Travis error |
value = input_dict[self.intrinsic_name] | ||
|
||
# FindInMap expects an array with 3 values | ||
if not isinstance(value, list) or len(value) != 3: |
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.
Should we also throw errors in the other scenarios where we return input_dict
? Or are there cases where we can't statically resolve them but they may get successfully resolved at runtime during CFN change set execution?
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.
You are right. In other scenarios, it is possible that some intrinsic functions are still left unresolved.
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.
Thanks!
Type: 'AWS::Serverless::Application' | ||
Properties: | ||
Location: | ||
ApplicationId: !Ref ApplicationIdParam |
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, thank you for adding support for this.
Description of changes:
Description of how you validated changes:
Added unit tests and end to end tests
Checklist:
make pr
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.