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
질문됨 7달 전2374회 조회
3개 답변
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
전문가
답변함 7달 전
  • 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
전문가
답변함 7달 전
  • Thanks for the help. Please see my solution below.

0
Roi
답변함 7달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인