Granting public READ for an object with canned ACLs from the CLI

We can upload an object and grant public read access using a canned ACL as follows:

  1. Download the image file using the admin user profile. On this occasion, downloading should be successful:

  1. Upload the same file as an administrator, providing the canned ACL for public-read:
aws s3 cp image-heartin-k.png s3://awsseccookbook/image-heartin-new.png 
--acl public-read
--profile awssecadmin
  1. Download the new file using the testuser profile: 

We should now be able to download the file successfully. 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.150.109