Roles
Create an IAM Role
- Navigate to the IAM service in the AWS Management Console.
- In the IAM console, choose "Roles" from the left-hand navigation pane.
- Click on the "Create role" button.
- In the "Choose a trusted entity" window, select the
AWS service
- Choose the specific use cases, now select
EC2
, this will allow EC2 instances to call AWS services on your behalf. - Click on "Next: Permissions".
- Select the existing policies to assign permissions to the role. Search for
S3
and select theAmazonS3FullAccess
andAmazonDynamoDBReadOnlyAccess
- Click on "Next: Review".
- Provide a name
myrole
and review the role details, including permissions and tags. - Click on "Create role".
The newly created role will appear in the list of roles.