O'Reilly logo

Learning AWS - Second Edition by Amit Shah, Aurobindo Sarkar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Understanding the SAM template

The following is a YAML source for the SAM template we downloaded (from the export function option) for the Lambda function defined in the previous section:

AWSTemplateFormatVersion: '2010-09-09'Transform: 'AWS::Serverless-2016-10-31'Description: A starter AWS Lambda function.Resources:    TestLambdaBluePrint:        Type: 'AWS::Serverless::Function'        Properties:            Handler: lambda_function.lambda_handler            Runtime: python3.6            CodeUri: .            Description: A starter AWS Lambda function.            MemorySize: 128            Timeout: 3            Role: 'arn:aws:iam::450394462648:role/LamdaFullAccess'            Tags:                'lambda-console:blueprint': hello-world-python3

You have a Lambda function defined here. Below that you are defining a couple of Lambda function properties, including ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required