Difference between revisions of "Aws iam attach-user-policy"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
(no output) | (no output) | ||
− | + | aws iam attach-user-policy --user-name my-read-only-user --policy-arn arn:aws:iam::aws:[[policy]]/[[AdministratorAccess]] | |
Revision as of 15:27, 6 May 2022
aws iam attach-user-policy --user-name my-read-only-user --policy-arn arn:aws:iam::aws:policy/ReadOnlyAccess (no output)
aws iam attach-user-policy --user-name my-read-only-user --policy-arn arn:aws:iam::aws:policy/AdministratorAccess
Related commands
aws iam list-attached-user-policies
aws iam detach-user-policy
aws iam create-user
aws iam add-user-to-group
aws iam attach-role-policy
See also
aws iam
[create-user
,create-group, get-user
,list-users
|list-policies
|list-attached-user-policies
|attach-user-policy
|list-attached-user-policies
|list-roles
|get-account-summary
|put-group-policy | put-role-policy | put-user-policy
|create-login-profile
|aws iam delete-virtual-mfa-device
|aws iam list-virtual-mfa-devices
|aws iam create-saml-provider
|aws iam list-account-aliases
|aws iam create-role | aws iam change-password| enable-mfa-device | list-instance-profiles
Advertising: