Creating IAM Role for EC2 Instance Lab Guide
- Log in to the AWS Management Console with your root account credentials.
- Navigate to the IAM console by clicking on “Services” in the top navigation bar, selecting “IAM” from the dropdown menu.
- Click on “Roles” in the left navigation pane, and then click on the “Create Role” button.
- Select “AWS service” as the trusted entity, and choose “EC2” as the service that will use the role.
- Select the policy that grants EC2 instances access to S3. For example, you can select the “AmazonS3FullAccess” policy to grant full access to S3.
- Name the role, such as “EC2-S3-Access”, and optionally add a description.
- Click on the “Create Role” button to create the role.
- Note down the ARN of the created role.