The following are the contents of the /resources/lambdaExectionRole.yml file:
Resources: letsPollLambdaExecutionRole: Type: "AWS::IAM::Role" Properties: AssumeRolePolicyDocument: Version: "2012-10-17" Statement: - Effect: "Allow" Principal: Service: - "lambda.amazonaws.com" Action: - "sts:AssumeRole"
Please note, we create an execution role that allows the holder to assume the role to execute the lambda.amazonaws.com service.