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
feita há 7 meses2369 visualizações
3 Respostas
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
ESPECIALISTA
respondido há 7 meses
  • 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
ESPECIALISTA
respondido há 7 meses
  • Thanks for the help. Please see my solution below.

0
Roi
respondido há 7 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas