Access to AWS S3 buckets is by default set to private. This denies access to the objects within the bucket from everyone.
One way to allow access to the objects in the S3 bucket is to enable public access to the whole S3 bucket by applying an appropriate public access policy.
Related: How to create public AWS S3 bucket
The other option is to enable public access only to specific objects or files and folders in the bucket. You can allow public access to these objects by using the Make public option.
Steps to allow public access to private AWS S3 bucket files:
- Create a private S3 bucket if you don't already have one.
Related: How to create private AWS S3 bucket
- Go to S3 section in your AWS Console.
Related: AWS S3 Management Console
- Click on the private S3 bucket with the object that you want to make public.
- Click on the Permissions tab.
- Click Edit on the Block public access section.
- Click on the Block all public access to uncheck and disable the options.
- Click on the Save changes button.
- Type confirm in the textbox to confirm.
- Click on the Confirm button.
- Click on the Objects tab.
- Click on the object that you want to make public.
- Click on the Object URL link to test current object access.
- Confirm current object access is still private and go back to object's properties page.
- Click on the Object actions dropdown menu.
- Click on Make public via ACL.
- Click on the Make public button.
- Click on the Close button.
- Click on the link in the Object URL again to test.
- Confirm current object access is now public.
Comment anonymously. Login not required.