EC2 Roles and Instance Profiles
Using EC2 Roles and Instance Profiles in AWS
Overview

Create a Trust Policy and Role Using the AWS CLI
Log in to Bastion Host and Set the AWS CLI Region and Output Type
Create IAM Trust Policy for an EC2 Role
Create the DEV_ROLE IAM Role
DEV_ROLE IAM RoleCreate an IAM Policy Defining Read-Only Access Permissions to an S3 Bucket
Create Instance Profile and Attach Role to an EC2 Instance
Attach Managed Policy to Role
Create the Instance Profile and Add the DEV_ROLE via the AWS CLI
DEV_ROLE via the AWS CLIAttach the DEV_PROFILE Role to an Instance
DEV_PROFILE Role to an InstanceTest S3 Permissions via the AWS CLI
Create an IAM Policy and Role Using the AWS Management Console
Create Policy
Create Role
Attach IAM Role to an EC2 Instance Using the AWS Management Console
Test the Configuration
Last updated