DEV Community

loading...

Discussion on: Share Your AWS S3 Private Content With Others, Without Making It Public

idrisrampurawala profile image
Idris Rampurawala Author

Hi,

If your front-end is using resources from S3, then I would suggest you add S3 bucket permissions to restrict the access outside your domain.

You can then directly expose that S3 bucket containing images on the front-end via Cloudfront. I do not see any use-case of using a pre-signed URL here as ur images might be restricted to your own domain and optionally authenticated users.

Hope it answers your queries.

P.S. Check this post for using CloudFront in front of S3