Skip to content

Roles

Create an IAM Role

  1. Navigate to the IAM service in the AWS Management Console.
  2. In the IAM console, choose "Roles" from the left-hand navigation pane.
  3. Click on the "Create role" button.
  4. In the "Choose a trusted entity" window, select the AWS service
  5. Choose the specific use cases, now select EC2, this will allow EC2 instances to call AWS services on your behalf.
  6. Click on "Next: Permissions".
  7. Select the existing policies to assign permissions to the role. Search for S3 and select the AmazonS3FullAccess and AmazonDynamoDBReadOnlyAccess
  8. Click on "Next: Review".
  9. Provide a name myrole and review the role details, including permissions and tags.
  10. Click on "Create role".

The newly created role will appear in the list of roles.

Released under the MIT License. Some of the contents are generated using Gen AI