Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I would like to:

  1. Create an IAM user
  2. Restrict that user to be able to have full management over a single EC2 Instance only.

Example: While the AWS EC2 account has 10 instances, the new user, UserA, can start or stop InstanceA but can do nothing else on the account (No launching of instances, no messing with volumes, etc).

Is there a simple method for giving a single user full access to a single resource like this, but no access to anything else?

share|improve this question
2  
This may be of some use. July 8, 2013 Article: blogs.aws.amazon.com/security/post/Tx29HCT3ABL7LP3/… –  user189835 Sep 13 '13 at 16:06
add comment

2 Answers

up vote 6 down vote accepted

EC2 instances do not have a "Amazon Resource Name" (ARN) so you are not able to write a IAM policy to allow a user access to a single instance.

If I can suggest another approach. The easiest way to handle this type of request is probably by giving the user SSH access to the instance and allowing them to sudo the commands you want them to be able to do such as reboot.

EDITED: Forgot to mention there is a nice AWS Policy Generator tool online which is very helpful. http://awspolicygen.s3.amazonaws.com/policygen.html

EDIT: This is now possible. http://blogs.aws.amazon.com/security/post/Tx29HCT3ABL7LP3/Resource-level-Permissions-for-EC2-Controlling-Management-Access-on-Specific-Ins

share|improve this answer
add comment

Actually, EC2 Instances do have a ARN. Every resource within EC2 has a ARN. An example of an instance ARN is as follows:

arn:aws:ec2:region:account:instance/instance-id

You can give a specific user access to a specific instance ID. You can include Actions the user is allowed to run.

See http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-policies-for-amazon-ec2.html#ec2-supported-iam-actions-resources for resources and actions, as well as conditions.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.