Using an existing S3 bucket in AWS SAM template

Question:

I am using AWS SAM template for deployment of python AWS lambdas. The trigger for these functions are from existing S3 buckets. But in SAM template I am unable to use existing buckets (only new bucket creation is supported), hence I’am creating the trigger manually.

Is there any way we could incorporate this in SAM template ?

Asked By: Nimin Unnikrishnan

||

Answers:

you can’t use an existing bucket with sam. It’s a limitation mention here.
You can try the workaround from this comment.

Answered By: pepo