Niamh shows you how to
assign an IAM role
to a running AWS instance

assign-iam-role-ec2-instance-Niamh

I have an IAM role that I want to assign to an EC2 instance. How can I do this?

  1. In the Amazon EC2 console, choose Instances from the navigation pane.
  2. Select the instance that you want to attach the IAM role to, choose Actions, Instance Settings, and then choose Attach/Replace IAM role.
  3. For IAM role, choose your IAM role, and then choose Apply.
  4. You should see a message that the IAM role operation succeeded. Choose Close.

The IAM role is now assigned to your running EC2 instance.


Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center

Published: 2017-08-02