
上QQ阅读APP看书,第一时间看更新
Attaching managed policies
The following command attaches the managed policies to the role. By attaching the policies, all permissions defined in the policies are applicable while assuming the role:
aws iam attach-role-policy ^ --role-name "AmazonS3FullAccessRole" ^ --policy-arn "arn:aws:iam::123456789012:policy/AmazonS3FullAccess"
The following are the options, which can be used with attach-role-policy:
Parameters |
Optional |
Description |
--role-name |
False |
This is the role name to which the policy needs to be attached |
--policy-arn |
False |
This is the policy ARN, which needs to be attached |