Allow public access to private AWS S3 bucket objects
S3 buckets are by default private. You can enable public access to the whole bucket or you can allow public access to specific objects in your private bucket.
These steps are to allow public access to your specific
S3 objects or files while leaving the rest of the bucket private:
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.
Sign up for AWS Certified Solutions Architect - Associate and many other great courses on Udemy to learn more.