Difference between revisions of "Aws iam attach-role-policy"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
 
* <code>[[aws iam]] attach-role-[[policy]]</code>
 
* <code>[[aws iam]] attach-role-[[policy]]</code>
  
  [[aws iam]] attach-role-policy
+
  [[aws iam]] attach-role-policy --role-name YOUR_ROLE_NAME [[--policy-arn]] 'arn:aws:iam::aws:policy/[[AmazonS3FullAccess]]'
(no output)
+
  (no output)
 
 
aws iam attach-role-policy --role-name YOUR_ROLE_NAME [[--policy-arn]] 'arn:aws:iam::aws:policy/[[AmazonS3FullAccess]]'
 
  
 
   aws iam attach-role-policy --role-name [[eksctl]]-YOUR_CLUSTER-NAME-nodegroup-standar-[[NodeInstanceRole]]-KOHNsadE2Zx --policy-arn 'arn:aws:iam::aws:policy/[[AmazonS3FullAccess]]'
 
   aws iam attach-role-policy --role-name [[eksctl]]-YOUR_CLUSTER-NAME-nodegroup-standar-[[NodeInstanceRole]]-KOHNsadE2Zx --policy-arn 'arn:aws:iam::aws:policy/[[AmazonS3FullAccess]]'

Revision as of 12:12, 11 July 2022

aws iam attach-role-policy --role-name YOUR_ROLE_NAME --policy-arn 'arn:aws:iam::aws:policy/AmazonS3FullAccess'
 (no output)
 aws iam attach-role-policy --role-name eksctl-YOUR_CLUSTER-NAME-nodegroup-standar-NodeInstanceRole-KOHNsadE2Zx --policy-arn 'arn:aws:iam::aws:policy/AmazonS3FullAccess'
(no output)
An error occurred (NoSuchEntity) when calling the AttachRolePolicy operation: Policy arn:aws:iam::123421434:policy/your-backup-policy does not exist or is not attachable.

Related

See also

Advertising: