Impossible to use intrinsic functions in S3 triggering event #1739
Labels
area/event-source
area/intrinsics
Ref, If, Sub, GetAtt, ...
contributors/good-first-issue
Good first issue for a contributor
type/bug
Description:
The use of intrinsic functions in S3 triggering event does not work when deploying in AWS.
I tried to build and deploy my application from the following template:
Steps to reproduce the issue:
Use
sam build
andsam deploy
with the previous template and a dummy hello world function in NodeJSI am using SAM CLI version 1.2.0 for Windows 10
Observed result:
I get the error
The event is not supported for notifications
when SAM deploys the bucket. In AWS Console, the generated cloudformation template looks like this:The value for
Event
isRef
and doesn't use the parameter value. I tried with other function such as!Sub
,Fn:Sub
or!Ref
and the problem remains the same.Expected result:
The S3 bucket and the lambda function should be deployed using a parameter. Any help is appreciated, thank you very much!
The text was updated successfully, but these errors were encountered: