-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Description
Description:
One of the limitations of SAM is that it does not support all of the CloudFormation intrinsic functions.
SAM should support the Find In Map intrinsic function so that customers can use this feature in SAM resources. This feature works for CFN resources because SAM passes those resources directly on to CFN.
In order for !FindInMap
to work, we need support for:
- Reading the mappings section of the template and storing it
- Recursively resolving
!FindInMap
functions - Resolving CFN pseudo parameters used in
!Ref
, such asAWS::Region
.
Steps to reproduce the issue:
- Use
!FindInMap
in theEvents
property of aAWS::Serverless::Function
- Deploy the template
Observed result:
Template fails because it cannot resolve the intrinsic function.
Expected result:
The intrinsic function should be evaluated to the correct value.
handol-park-old, walkafwalka and supreetd21