Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 554 Bytes

File metadata and controls

7 lines (5 loc) · 554 Bytes

The following command grants full control to two AWS users ([email protected] and [email protected]) and read permission to everyone:

aws s3api put-object-acl --bucket MyBucket --key file.txt --grant-full-control [email protected],[email protected] --grant-read uri=http://acs.amazonaws.com/groups/global/AllUsers

See http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTacl.html for details on custom ACLs (the s3api ACL commands, such as put-object-acl, use the same shorthand argument notation).