Role
Last updated on
Follow these steps to obtain the Amazon Resource Name (ARN) of the function's execution role to be used as a Role value in the SAM Template:
In the Amazon EC2 Console, open the IAM console and choose Create Role.
Create a Role with the following specifications:
- Select the type of trusted entity with AWS Service.
- Choose Lambda as the use case.
- Input the Role Name. In this documentation, our role is called title-matchmaking-app-role.
- Add the following policies:
- AmazonEC2FullAccess
- AmazonAPIGatewayInvokeFullAccess
- AWSLambdaVPCAccessExecutionRole
- AWSLambdaBasicExecutionRole
Once the role is created, copy the Role ARN and use its value as the Role attribute in the SAM Template below.
# The Amazon Resource Name (ARN) of the function's execution role.
# Required: Yes
Role: ''