Closed sansmoraxz closed 5 months ago
Interesting enough doing this through the AWS CloudFormation UI somehow works.
This is a known feature gap with the currently supported intrinsics: https://github.com/aws/aws-sam-cli/issues/5647
Unfortunately I do not have a workaround at this moment. Closing this issue in favour of the linked issue.
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Description:
Fn::ForEach
instrinsic does not seem to work with SAM cli.Steps to reproduce:
Try to build and deploy the following template with sam:
Observed result:
Results in error message:
Full traceback for
sam validate --lint
:Expected result:
Successful deployment through
sam build && sam deploy
.Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
Add --debug flag to command you are running