How to attach a managed policy to an IAM group

0 votes

Hi Team,

I have created one IAM group. I want to attach a managed policy to that IAM group from CLI. How can I do that?

Nov 3, 2020 in AWS by akhtar
• 38,260 points
596 views

1 answer to this question.

0 votes

Hi@akhtar,

You can attach the specified managed policy to the specified IAM group. You need to use the API to attach a managed policy to a group. To embed an inline policy in a group, use PutGroupPolicy. The following attach-group-policy command attaches the AWS managed policy named ReadOnlyAccess to the IAM group named Finance.

$ aws iam attach-group-policy --policy-arn arn:aws:iam::aws:policy/ReadOnlyAccess --group-name Finance
answered Nov 3, 2020 by MD
• 95,460 points

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to attach an Internet Gateway to a VPC?

To attach an Internet Gateway to a ...READ MORE

answered Feb 21, 2019 in AWS by Priyaj
• 58,020 points
1,141 views
+1 vote
1 answer

How to add an user to an IAM group?

Hi@akhtar, You can add the specified user to the ...READ MORE

answered Nov 3, 2020 in AWS by MD
• 95,460 points
571 views
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 58,020 points
5,988 views
–1 vote
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 58,020 points
5,224 views
0 votes
2 answers
0 votes
1 answer
0 votes
1 answer

How to attach a managed policy to an IAM user?

Hi@akhtar, You can attach the specified managed policy ...READ MORE

answered Nov 3, 2020 in AWS by MD
• 95,460 points
618 views
0 votes
1 answer

How to attach a load balancer to an Auto Scaling group in AWS?

Hi@akhtar, You can attach one or more Classic Load ...READ MORE

answered Nov 26, 2020 in AWS by MD
• 95,460 points
927 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP