This command creates an S3 policy.
Note
This command requires you to enter policy content in the command line. Since the policy content is multi-line, you may find that your SSH terminal does not succeed in creating the policies.
In case of difficulty, we recommend you use the VAST Web UI to add policies to VMS.
Usage
s3policy create --name NAME --policy POLICY
Required Parameters
|
Specifies a name for the policy. |
|
Enter the policy content in JSON format. For information about how to write user policies, see How to Write an S3 User Policy. |
Example
This example creates a policy that allows any user to which the policy is attached to perform all actions on all resources:
vcli: admin> s3policy create --name allow_all --policy ' { "Version": "2012-10-17", "Statement": [{ "Sid": "AllowAllActionsAllResources", "Action": "*", "Effect": "Allow", "Resource": "*" } ] }'
Comments
0 comments
Article is closed for comments.