IAM user to give permission start,restart,terminate service in AWS IAM user account

We will learn How to Create IAM User on AWS Console with Start, Restart, Terminate permission to IAM User. Some time we need to give permission to our team member or users to EC2 Instance Machine.

Example For Policies :-

Go to IAM
Create a user in IAM :-
>  Next  botten
>  Next botten
>  Create user
>  Close
Go to left side Group tab :-
>   Next
>   Not give the policy here
>  Next
>  create group
Go to left side Policies :-    
>    Create policy
>    Create Your Own Policy

Note:- we are required the policy can be create and customize from here.

>   select  

>     validate policy (check the policy is correct or not)
>     create policy

This is the ready only permission to instance
1: Read-Only Access :-
{
   "Version": "2012-10-17",
   "Statement": [{
      "Effect": "Allow",
      "Action": "ec2:Describe*",
      "Resource": "*"
    }
   ]
}
2: Restricting Access to a Specific Region :-
{
  "Version":"2012-10-17",
  "Statement":[
    {
    "Effect": "Allow",
    "Action": "ec2:*",
    "Resource": "*",
    "Condition": {
      "StringEquals": {
        "ec2:Region": "eu-central-1"
      }
    }
  }
  ]
}

 3: Describe, launch, stop, start, and terminate all instances :-
{
   "Version": "2012-10-17",
   "Statement": [{
      "Effect": "Allow",
      "Action": [
        "ec2:DescribeInstances", "ec2:DescribeImages",
        "ec2:DescribeKeyPairs", "ec2:DescribeSecurityGroups",
        "ec2:DescribeAvailabilityZones",
        "ec2:RunInstances", "ec2:TerminateInstances",
        "ec2:StopInstances", "ec2:StartInstances"
      ],
      "Resource": "*"
    }
   ]
}
4: Describe, launch, stop, start, and terminate all instances :-
Most Important polices because it's requirement to all Companies,offices, and Aws user or client account.
{
   "Version": "2012-10-17",
   "Statement": [{
      "Effect": "Allow",
      "Action": [
        "ec2:DescribeInstances", "ec2:DescribeImages",
        "ec2:DescribeKeyPairs", "ec2:DescribeSecurityGroups",
        "ec2:DescribeAvailabilityZones",
        "ec2:TerminateInstances",
        "ec2:StopInstances",
        "ec2:StartInstances"
      ],
      "Resource": "*"
    }
   ]
}


IAM user to give permission start,restart,terminate service in AWS IAM user account IAM user to give permission start,restart,terminate service in AWS IAM user account Reviewed by Unknown on October 31, 2017 Rating: 5

No comments:

Scribe

http://feeds.feedburner.com/LinuxAndAws
Powered by Blogger.
X

Get Updates On

Linux Tutorial

AWS Tutorial

Devops Tutorial

We are going to send you our resources for free. To collect your copy at first, join our mailing list. So don't miss any updates, stay connected!