VPC execution policy

The following are the contents of the /resources/lambdaVpcPolicy.yml file:

Resources:  LambdaInVPCExecutionPolicy:    Type: AWS::IAM::Policy    Properties:      PolicyName: "LambdaInVPCExecutionPolicy"      PolicyDocument:        Version: '2012-10-17'        Statement:        - Effect: Allow          Action:          - ec2:CreateNetworkInterface          - ec2:DescribeNetworkInterfaces          - ec2:DeleteNetworkInterface          Resource: "*"      Roles:          -            Ref: letsPollLambdaExecutionRole

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.