- Newest
- Most votes
- Most comments
I believe the answer is NO, you cannot directly access private S3 images from a frontend-only Amplify app without some form of backend or authentication, instead considering using a Backend to Generate Presigned or CloudFront with Signed URLs.
Hey,
Hope you're keeping well.
You can’t directly access a private S3 object from a purely frontend app without some way to sign the request, because S3 requires authenticated access for private buckets. The usual secure approach is to introduce a lightweight backend (could be AWS Lambda or API Gateway) that generates pre-signed URLs using the AWS SDK, which your frontend can then use to fetch the file. If you want CDN performance and control, you can front the bucket with CloudFront and use signed URLs or signed cookies to restrict access. Without Cognito or backend logic, there’s no secure method to expose private S3 objects directly to a browser.
Thanks and regards,
Taz
answered 8 months ago
Relevant content
- AWS OFFICIALUpdated 4 years ago
