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
posta 7 mesi fa2380 visualizzazioni
3 Risposte
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
ESPERTO
con risposta 7 mesi fa
  • 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
ESPERTO
con risposta 7 mesi fa
  • Thanks for the help. Please see my solution below.

0
Roi
con risposta 7 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande