Using CloudFront to upload files to S3 bucket using presign URL and custom domain

0

Hi,

I understand it's possible to use CloudFront distribution to upload files (via POST) to an S3 Bucket. My Question is how can I achieve this with presigned URL's and a custom domain ?

TIA, Roi

Roi
asked 7 months ago2145 views
3 Answers
0

Hello, Roi. I have one article with a good point on how you can configure that https://www.automat-it.com/post/using-presigned-urls-with-cloudfront. It`s not official documentation but this guys as an AWS Partner so people have good experience and knowledge.

Best regards, Andrii

profile picture
EXPERT
answered 7 months ago
  • Thanks for the quick reply but it doesn't seem like it answers my question regarding upload of a file to a custom domain using CloudFront.

0

So the thing is, S3 presigned URLs don't work well with CloudFront, since they are two different mechanisms that practically do the same thing. CloudFront is the more elaborate, with many more options and functionality. So instead pre-signed URL you can use signed URL for Cloudfront https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-signed-urls.html. This will allow more detailed access to the file for those who need it. Best regards, Andrii

profile picture
EXPERT
answered 7 months ago
  • Thanks for the help. Please see my solution below.

0
Roi
answered 6 months 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.

Guidelines for Answering Questions