Skip to main content

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:

  1. In the Amazon EC2 Console, open the IAM console and choose Create Role.

  2. Create a Role with the following specifications:

    1. Select the type of trusted entity with AWS Service.
    2. Choose Lambda as the use case.
    3. Input the Role Name. In this documentation, our role is called title-matchmaking-app-role.
    4. Add the following policies:
      1. AmazonEC2FullAccess
      2. AmazonAPIGatewayInvokeFullAccess
      3. AWSLambdaVPCAccessExecutionRole
      4. 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: ''