How to configure Cloudfront Presign URLs
ฝัง
- เผยแพร่เมื่อ 15 ก.ย. 2024
- 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
Thanks for sharing. This is exactly what I was after. Short and to the point.
thank you , very clear and point
Super helpful. Thank you
Hidden gem of a video!
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
Great job, this was very helpful. Keep up the good work!
Great explaination.
Need a suggestion on adding inline policy in IAM role. That is TechStack-dev-lambda created in this session.
I don't remember what it had, but any role allowing `CloudFront: *` should make the lambda able to execute.
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?
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!
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?
Way too clear than motormouths on TH-cam blabbering established contents
@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 ?
check your policy of the bucket
hey! you resolved the issue ?