Difference between revisions of "Aws iam create-policy"

From wikieduonline
Jump to navigation Jump to search
Line 22: Line 22:
 
  }
 
  }
  
 +
== Related ==
 +
[[aws iam attach-role-policy]]
  
 
== See also ==
 
== See also ==

Revision as of 12:11, 11 July 2022

https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iam/create-policy.html

aws iam create-policy

Official example

aws iam create-policy --policy-name my-policy --policy-document file://policy
Output:
{
   "Policy": {
       "PolicyName": "my-policy",
       "PolicyId": "ANPAYAQ3JJAXITP2KM77X",
       "Arn": "arn:aws:iam::123456789:policy/my-policy",
       "Path": "/",
       "DefaultVersionId": "v1",
       "AttachmentCount": 0,
       "PermissionsBoundaryUsageCount": 0,
       "IsAttachable": true,
       "CreateDate": "2022-04-11T12:08:56+00:00",
       "UpdateDate": "2022-04-11T12:08:56+00:00"
   }
}

Related

aws iam attach-role-policy

See also

Advertising: