January 2019
Intermediate to advanced
490 pages
15h 37m
English
Resources components specify the AWS resources used. We need two resources for our use case: a role and a Lambda function with that role. The following is the basic structure of our CloudFormation template:
---AWSTemplateFormatVersion: '2010-09-09'Description: Building Lambda with AWS CloudFormationResources: IamRoleLambdaExecution: Type: AWS::IAM::Role Properties: # Properties for the role are shown later. LambdaFunctionWithCF: Type: AWS::Lambda::Function Properties: # Properties for the Lambda are shown later. DependsOn: - IamRoleLambdaExecution
I have also defined AWSTemplateFormatVersion and Description as a general practice, but they are optional. Note that properties for the IamRoleLambdaExecution ...
Read now
Unlock full access