Triggering AWS Lambda with SQS message using Serverless Framework | FooBar

Поделиться
HTML-код
  • Опубликовано: 3 дек 2024

Комментарии • 36

  • @delprofundo
    @delprofundo 6 лет назад +2

    Using your guidance Ive managed to get mine working thanks :) FYI the Ref from the SQS resource holds the URI for the queue so you can just export that by itself and dont have to wrangle the string in the handler or library. Thanks again

    • @colkito
      @colkito 6 лет назад

      good point! have you an example?

    • @colkito
      @colkito 6 лет назад

      Auto-response:
      functions:
      test-sqs:
      handler: handler.testSqs
      events:
      - http:
      path: test-sqs
      method: get
      cors: true
      environment:
      AWS_QUEUE_URL:
      Ref: TestSqsHello

    • @delprofundo
      @delprofundo 6 лет назад

      I do. Ive got an internal wiki article that I'm going to turn into a gist and publish in the next 24 hours. I'll link it back here. Ive upgraded 14 services to use SQS this way in the last day so am fairly comfortable with it

    • @delprofundo
      @delprofundo 6 лет назад

      medium.com/@brunowatt/implementing-sqs-in-serverless-the-right-way-a416f73e94da

    • @colkito
      @colkito 6 лет назад

      Bruno Watt awesome!
      I will check it now. thanks! 👍🏿👍🏿

  • @joshdsy
    @joshdsy 6 лет назад +1

    I was just reseaching this and you posted !!!!

  • @AhmadYusuf85
    @AhmadYusuf85 2 года назад

    Thanks for the video, does the SQS message get automatically deleted from the SQS queue once processed by the lambda?
    What happens if the processing fails for any reason (run time exception for example), I would the expect the message to be invisible for the visibilityTimeOut period and then becomes visible again and trigger another instance of the lambda

  • @РусланЮсуфов-ф3ш
    @РусланЮсуфов-ф3ш 2 года назад +1

    Awesome! Thanks!

  • @thanhhungtruong8422
    @thanhhungtruong8422 2 года назад +1

    Great! thank you very much!

  • @germantellez2710
    @germantellez2710 3 года назад

    That was a nice explanation!

  • @jsinnerx
    @jsinnerx 4 года назад

    Great explanation! Thank you very much. Could we take some information such as the queue name you have imported in the handler from the environment variables?

    • @jsinnerx
      @jsinnerx 4 года назад +1

      Ow! I could see the tips in the video. Yes, it's pretty cleaner having that info in environment variables.

  • @KashishPandey07
    @KashishPandey07 4 года назад

    Hi, i have a query. I have a single lambda function which is triggered by sqs standard queue and the event source is cloudwatch. I am sending message to sqs through cloudwatch which is then triggering lambda and my lambda is getting failed so i m retrying it for 3 times and send it to DLQ. Now my question is if the message id will be same for that single message or with every retry message id will change because message body is same but i am getting 2 message id's with same message.

  • @opencompare
    @opencompare 6 лет назад +1

    Great video, thanks for sharing, are you able to provide a link to the code?

  • @danaelhertani7976
    @danaelhertani7976 6 лет назад +1

    My queues and functions are not showing up in my console, but I'm also not getting any errors and everything works as expected in the CLI and postman. I can create queues through the console, but my queues created via CLI are not showing up in the console. Are their permissions I should double check? I'm using a federation account if that makes a difference.

    • @foobar_codes
      @foobar_codes  6 лет назад

      are u checking the right region in your console?

  • @ManleyCelicourt
    @ManleyCelicourt 6 лет назад

    🔥 Hello, I was wondering maybe you could make a firebase storage for videos, like a course video app, I see no tutorials online

  • @hansonpham1654
    @hansonpham1654 6 лет назад +1

    Can I use Python to write it?

  • @codenjourney6656
    @codenjourney6656 4 года назад +1

    Awesome

  • @skrosoft
    @skrosoft 6 лет назад

    Do someone know if we can use a DynamoDB Stream to SQS without passing from a Lambda function?

  • @yuanmiau
    @yuanmiau 5 лет назад

    Have a issue stranger, I follow all steps but when exexute the resource of API gateway always response me:
    502 Bad Gateway
    {
    "message": "Internal server error"
    }
    On CloudWatchLog aren't print none message using console.log.

    • @tiodal
      @tiodal 5 лет назад

      i have same problem

  • @astonsong5616
    @astonsong5616 5 лет назад +1

    Omg thank you so much, you just save my arse on this 😂😂

  • @Chavez3d
    @Chavez3d 2 года назад

    interesting sqs pronunciation "es coo es", later you pronounce queue properly... ES cue ES is correct... sqs === ES CUE ES or s queue s... good lesson thanks for the content!!

  • @jayhybercarocoy4452
    @jayhybercarocoy4452 6 лет назад +1

    Hello World :D
    This video helps me a lot! Thank you so much.
    Can you please make a video of something like this but using a post method? I just wonder how to pass the request body of my api to the next lambda that i will be triggering.
    Hoping for your response :D

    • @foobar_codes
      @foobar_codes  6 лет назад

      You can check my free course on serverless there is some examples on how to use post www.udemy.com/introduction-to-serverless-aws/

  • @nossatoperdido
    @nossatoperdido 5 лет назад +1

    TY u help me get a job hahaha

  • @diegogaldinojaldim571
    @diegogaldinojaldim571 4 года назад +2

    Code like a girl =)

  • @makesyouhappy3592
    @makesyouhappy3592 6 лет назад

    You are cute. Love u