Integrating with AWS Serverless Application Model (SAM)»
In order to use AWS Serverless Application Model (SAM) in an AWS CloudFormation Stack you'll need to do two things: create a Docker image with SAM included and invoke SAM in
The first one can be done using a Dockerfile akin to this one:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
You should build it, push it to a repository and set it as the Runner Image of your Stack.
You'll also have to invoke SAM in order to generate raw CloudFormation files and upload Lambda artifacts to S3. You can do this by adding the following to your before initialization hooks: