Amazon Web Services Bootcamp
上QQ阅读APP看书,第一时间看更新

Attaching a group policy

To attach the managed policy under the group, use the following code:

    aws iam attach-group-policy ^
    --group-name "Developer" ^
    --policy-arn "arn:aws:iam::123456789012:policy/AmazonS3FullAccess"

The following are the options, which can be used with attach-group-policy:

Parameters

Optional

Description

--group-name

False

This is the name of the group under which the policy will be attached

--policy-arn

False

This is the policy ARN that needs to be attached