Skip to content

How do I create a public URL for a single S3 object without changing bucket policy?

0

S3 Public File URL How do I create a public URL for a single S3 object without changing bucket policy? I need a permanent, public link to one file in a private S3 bucket (no public policy). Is a presigned URL the only option? If so, what’s the recommended expiration or best practice?

1 Answer
1
Accepted Answer

Hello.

If you do not use a bucket policy, you will need to publish using a signed URL.
Best practices for signed URLs are described in the following documents:
https://docs.aws.amazon.com/prescriptive-guidance/latest/presigned-url-best-practices/overview.html

If you want to make an object public permanently, the easiest way to set it up is to edit the bucket policy and make it public, as described in the following document.
https://repost.aws/knowledge-center/read-access-objects-s3-bucket

EXPERT

answered a year ago

AWS
EXPERT

reviewed a year ago

EXPERT

reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.