Create IAM Role for EC2 with Full IAM Access
Answer
Scenario
Your team needs an EC2 instance to manage IAM resources programmatically. To follow AWS security best practices, you should use an IAM role instead of embedding credentials.
Task
Create an IAM role named IAMFullAccessEC2 that:
- Allows the EC2 service to assume the role
- Has the
IAMFullAccessAWS managed policy attached
Note: You can use either the AWS Management Console or AWS CLI to complete this task.
📹 Video Solution