Private (default, recommended) Only people with valid access keys can read or write. Use this for backups, customer files and any data that should not be public.
Public Anyone with the link can download the objects that are public. Use this only for files meant to be public, such as images on a website, downloads and static assets. Anyone can read a public file, including search engines.
How to choose
- Not sure: keep it private.
- Public website images: make just those objects or one folder public.
- Backups, databases, documents, personal data: always private.
Change access
- In your S3 management area or a tool such as Cyberduck, right-click the bucket or object.
- Open its permissions or Info.
- Set read access for everyone to make it public, or remove it to make it private.
You can also use a bucket policy where your tool supports it.
Share a private file for a limited time Create a pre-signed URL. With the AWS CLI: aws s3 presign s3://my-bucket/file.zip --expires-in 3600 --endpoint-url ENDPOINT. The link stops working after the time ends.
Safety
- Do not put secrets in public buckets.
- Review permissions often.
- If you made something public by mistake, make it private now and rotate any exposed keys.
Still need help?
Ask Zeni in the chat bubble, or open a support ticket. We answer 24/7.