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

ความคิดเห็น • 15

  • @JoshuaMFrancis
    @JoshuaMFrancis 2 ปีที่แล้ว +3

    Thanks for sharing. This is exactly what I was after. Short and to the point.

  • @professionalfacepuncher8361
    @professionalfacepuncher8361 ปีที่แล้ว +1

    thank you , very clear and point

  • @viktorbranco8362
    @viktorbranco8362 2 ปีที่แล้ว +2

    Super helpful. Thank you

  • @kacy6014
    @kacy6014 2 ปีที่แล้ว +1

    Hidden gem of a video!

  • @AbiramiDhanabalan
    @AbiramiDhanabalan 9 หลายเดือนก่อน +1

    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

  • @sly5
    @sly5 ปีที่แล้ว

    Great job, this was very helpful. Keep up the good work!

  • @chinthamanik3667
    @chinthamanik3667 2 ปีที่แล้ว +1

    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.

  • @panagiotisgiannelos3767
    @panagiotisgiannelos3767 5 หลายเดือนก่อน

    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  5 หลายเดือนก่อน

      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!

  • @travel_diaries45
    @travel_diaries45 ปีที่แล้ว +1

    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?

  • @fishsauce7497
    @fishsauce7497 2 ปีที่แล้ว +2

    Way too clear than motormouths on TH-cam blabbering established contents

  • @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 ?