S3 buckets are by default private. You can enable public access to the whole
S3 bucket by applying public access policy to the bucket.
You can allow public access to object or files in your private
S3 buckets by applying the
Make public option onto the files.
Steps to allow public access to private AWS S3 bucket files:
section in your
Click on the bucket of the object that you want to make public.
Enable public access control lists (ACLs) for the bucket.
This will allow public access settings for the bucket but not immediately make your bucket's contents publicly accessible
Click on the
link on the
Public access settings
Block new public ACLs and uploading public objects
Remove public access granted through public ACLs
options and click on the
and click on the
Allow public access to your object or file.
Go back to the main section of your bucket by clicking on the
Click on the object that you want to make public.
Click on the link for your object at the bottom of the page to test.
Your should get a permission error.
Go back to the file page and click on the
Success flash message should appear
Click on the link for your object at the bottom of the page again to test.
Your should now be able to access your object via the public URL.
Discuss the article:
Comment anonymously. Login not required.