Creating a role

Before we can upload the function, we need to prepare our AWS environment by creating the appropriate role. Log on to AWS and navigate to the Identity and Access Management Console (https://console.aws.amazon.com/iam). In the navigation pane on the left, click on Roles, then click on Create new role:

When prompted to select a role, we want to select AWS Lambda. On the next page, we will attach the policies:

Click on Next, set the name to j9bp, and click on Create role.

Get Java 9: Building Robust Modular Applications 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.