How to configure Cloudfront Presign URLs

  Рет қаралды 6,306

Ivan Carcamo

Ivan Carcamo

Күн бұрын

Requirements:
- Know how to create a basic cloudfront distribution
- Know how to create a basic S3 bucket
- Know how to create a basic lambda function
References:
stackoverflow....
stackoverflow....
Lambda_function.zip:
mega.nz/file/b...
Other way to create Cloudfront sign urls (awscli):
aws cloudfront sign --url url --key-pair-id key-id --private-key file://pem-file-path --date-less-than 2023-03-06

Пікірлер: 15
@professionalfacepuncher8361
@professionalfacepuncher8361 Жыл бұрын
thank you , very clear and point
@viktorbranco8362
@viktorbranco8362 2 жыл бұрын
Super helpful. Thank you
@sly5
@sly5 Жыл бұрын
Great job, this was very helpful. Keep up the good work!
@AbiramiDhanabalan
@AbiramiDhanabalan 9 ай бұрын
I have done all the steps you did, I checked the S3 policy. everything looks good but I am getting below error. This XML file does not appear to have any style information associated with it. The document tree is shown below. AccessDenied Access denied
@panagiotisgiannelos3767
@panagiotisgiannelos3767 6 ай бұрын
I'm a newbie, so i would like to clarify the reason of this. Can't this also be done using signed-cookies? Having a policy that allows access only to a public directory and having an other signed-cookie policy for the private directory?
@ivandres73
@ivandres73 6 ай бұрын
I haven't heard of signed-cookies to tell you the truth. But I hope that this phrase helps you: "There's always multiple solutions to tackle the same problem", keep it up!
@fishsauce7497
@fishsauce7497 2 жыл бұрын
Way too clear than motormouths on KZbin blabbering established contents
@CodeNClouds
@CodeNClouds 2 жыл бұрын
Thanks for sharing. This is exactly what I was after. Short and to the point.
@chinthamanik3667
@chinthamanik3667 2 жыл бұрын
Great explaination. Need a suggestion on adding inline policy in IAM role. That is TechStack-dev-lambda created in this session.
@ivandres73
@ivandres73 2 жыл бұрын
I don't remember what it had, but any role allowing `CloudFront: *` should make the lambda able to execute.
@kacy6014
@kacy6014 2 жыл бұрын
Hidden gem of a video!
@uttamdwivedi7709
@uttamdwivedi7709 Жыл бұрын
@ivan thanks for the detailed video. I have tried the method, however I get the following error whenever I try to open the page - AccessDenied Access denied Could you help me ?
@ivandres73
@ivandres73 Жыл бұрын
check your policy of the bucket
@AbiramiDhanabalan
@AbiramiDhanabalan 9 ай бұрын
hey! you resolved the issue ?
@travel_diaries45
@travel_diaries45 Жыл бұрын
Hello what to modify in this code so that whole folder's object got presigned url? Because this code is working for only one object at a time. Need to run lambda for each object seperately?
CloudFront Signed URLs with Node.js
12:42
Sam Meech-Ward
Рет қаралды 24 М.
HAH Chaos in the Bathroom 🚽✨ Smart Tools for the Throne 😜
00:49
123 GO! Kevin
Рет қаралды 16 МЛН
小丑妹妹插队被妈妈教训!#小丑#路飞#家庭#搞笑
00:12
家庭搞笑日记
Рет қаралды 38 МЛН
How to Create Engaging Architecture Diagrams Using AWS
18:17
AWS Developers
Рет қаралды 7 М.
Amazon S3 Origin based routing using Lambda@Edge and CloudFront Distribution
14:30
Vibhor Gupta - Product | Project | Technology
Рет қаралды 9 М.
AWS CloudFront Caching and Behaviors
11:29
Digital Cloud Training
Рет қаралды 9 М.
AWS CloudFront Signed URL and Cookies | Visual Explanations
19:12
Set up a CloudFront CDN for an S3 Bucket
11:49
Sam Meech-Ward
Рет қаралды 69 М.
SNS And SQS Deep Dive | SNS Vs SQS | Standard Vs FIFO | Use Cases
15:05
Why should you use S3 presigned URLs? (A full demo included)
18:25
Enlear Academy
Рет қаралды 35 М.
Use Presigned PUT URLs to Easily Upload Files to AWS S3
16:52
TomDoesTech
Рет қаралды 33 М.
HAH Chaos in the Bathroom 🚽✨ Smart Tools for the Throne 😜
00:49
123 GO! Kevin
Рет қаралды 16 МЛН