Execution role creation

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.

Get Hands-On Serverless Applications with Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.