Posted On: Oct 9, 2019
The AWS Serverless Application Model (AWS SAM) is a specification that extends AWS CloudFormation to provide a simplified syntax to express functions, APIs, and more. The latest SAM release supports four major updates and other features as detailed in the release notes.
API Gateway Resource Policies: SAM now supports a simplified syntax for adding resource policies for the APIs in a template. With this addition, customers can whitelist or blacklist users based on AWS Accounts, IP addresses or source VPCs.
SQS subscription for SNS topic: SAM now supports adding the SqsSubscription property for SNS topic events triggering a Lambda function. If set to true, the SNS topic will instead publish to an SQS queue created by SAM and the Lambda function will now receive events from the SQS queue.
Cognito as an event source: SAM now provides a simplified way to add Cognito as an event source for Lambda functions to customize the Amazon Cognito user pool flows. Customers can define the Cognito properties within the AWS::Serverless:: Function definition.
Maximum Batching Window property: SAM supports adding the MaximumBatchingWindowInSeconds property for Kinesis and DynamoDB event sources. To learn more, see using AWS Lambda with Kinesis and using AWS Lambda with DynamoDB.
AWS SAM is available under the Apache 2.0 license. Anyone can incorporate SAM into deployment tools with a commercial-friendly license. To learn more, see getting started with SAM. AWS SAM is available in all regions where AWS Lambda is available. For more information, see the AWS region table.