Your First AWS Lambda Function with Go

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 มี.ค. 2022
  • Learn how to build your first Lambda Function with Go! We'll create a basic hello-world function from scratch, upload it to AWS, and test it within our browser. This is the first in a series of videos on building a Serverless API in AWS with Go!
    ▪ Website Link: brianmorrison.me/blog/your-fi...
    🔴 Subscribe today!
    / @brianmmdev
    👋 Connect w/me:
    ▪ Twitter: / brianmmdev
    ▪ Website: brianmorrison.me
    ▪ Twitch: / brianmmdev
    __________________________________________
    🖥 My Rig
    ▪ CoolerMaster MB511: amzn.to/2AZfPUc
    ▪ GIGABYTE X570 AORUS Elite Wifi: amzn.to/2AZijlt
    ▪ Sabrent 1TB Rocket: amzn.to/316zIDy
    ▪ Corsair Vengeance RGB Pro 64GB: amzn.to/3epbybf
    ▪ AMD Ryzen 9 3900X: amzn.to/2CxwYov
    ▪ ASUS ROG STRIX GeForce GTX 1080: amzn.to/3hYuEar
    __________________________________________
    🎥 Streaming Gear
    ▪ SteelSeries Arctis 7: amzn.to/3hOUpJX
    ▪ Elgato Game Capture HD60 Pro: amzn.to/2V8nTc8
    ▪ Logitech C922x Pro Stream: amzn.to/2V7PKZY
    ▪ TaoTronics Camera Light: amzn.to/37QI4Ax
    ▪ InnoGear Microphone Arm: amzn.to/37Ql8Bk
    ▪ Audio-Technica AT2005USB: amzn.to/3ajIuRh
    __________________________________________
    ⏯ My Coding Series'
    ▪ Coding NodeJS APIs: • Coding NodeJS APIs
    ▪ Coding Discord Bots: • Coding Discord Bots
    __________________________________________
    📚 Other Excellent Learning Resources
    ▪ freeCodeCamp: www.freecodecamp.org/
    Please note that links in this description may or may not be affiliate links, where I make a small commission if used.
    Thanks For Watching!
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @diegorocha2186
    @diegorocha2186 ปีที่แล้ว +8

    Just as a note in 7:51 the runtime handler is not the name of the function entry point, but the name of the executable generated by go build command. For example if you run "go build something" the runtime handler must be "something".

  • @fuexfollets5755
    @fuexfollets5755 8 หลายเดือนก่อน +1

    Your series is easily the best guide for aws lambda dn cognito usage. You talk clearly and detailed. Your tutorials are also very fast which helps a lot.

  • @jeanjacquesbarros
    @jeanjacquesbarros 11 หลายเดือนก่อน

    Thank you! I was trying to run my lambda but I gave some errors, this video helped me a lot!

  • @anhtramnguyen2469
    @anhtramnguyen2469 ปีที่แล้ว +4

    good video, quick to the point. Thanks!

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

      Glad it was helpful!

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

    Good stuff Brian!

  • @sudarsan333
    @sudarsan333 10 หลายเดือนก่อน

    Thanks bro..this video help me very much

  • @hanzladev
    @hanzladev 2 ปีที่แล้ว

    Great video, keep up the good work ✨🎉

    • @brianmmdev
      @brianmmdev  2 ปีที่แล้ว

      Thank you so much!

  • @chuckzhai6408
    @chuckzhai6408 2 ปีที่แล้ว

    Thanks your work very much. ❤️

    • @brianmmdev
      @brianmmdev  2 ปีที่แล้ว

      You're welcome 😊

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

    Such a great channel ! Thanks for the video
    Could you make one for AWS gateway proxy with gin ? Couldn't find an updated one

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

    I followed your tutorial except the AWS console part. I just used Terraform since I very much dislike point and click lol. Great video though!!!

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

    While Test the file it shows calling the invoke Api action failed with signature expaired

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

    Hey there!
    When I try to run my program locally, I get the following error: expected AWS Lambda environment variables [_LAMBDA_SERVER_PORT AWS_LAMBDA_RUNTIME_API] are not defined.
    I find this weird since the AWS Lambda documentation does not mention any env variables with these names, nor mentions this configuration step at any point.
    I already tried googling for it but I got no answers.
    Do you know if there's something I'm missing?
    Thanks in advance!

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

      That is strange... honestly to do local testing, I use AWS SAM which kinda takes care of that logic. You might find some answers here: docs.aws.amazon.com/toolkit-for-vscode/latest/userguide/welcome.html

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

    the handler name is the file name, not the function name like u mentioned in 8:00

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

      exactly it's the binary file name generated from the build command I believe. But anyway thanks a lot @Brian you helped me to create my first lambda function.

  • @VijayChintapandu
    @VijayChintapandu 4 หลายเดือนก่อน

    Hey I couldn't find the Go in supported languages list. How can I find go in that list. there are Java, Node.js and Python versions. Please help me

    • @VijayChintapandu
      @VijayChintapandu 4 หลายเดือนก่อน

      go it.. it's listed as OS-only runtimes

  • @user-ls8lm7bt9s
    @user-ls8lm7bt9s ปีที่แล้ว

    How can I pass parameters such as bucket name, path etc

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

      If you're using an S3 event, you'd want to replace the event param with `s3Event events.S3Event`.
      I do this in my side project, you can see more here: github.com/GuardianForge/guardianforge.net/blob/0f6b41f1bcf28830557510496f8d3ea19939d06e/backend/stack/s3-handlers/create-og-image/main.go#L52C35-L52C57

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

    @BrianMorrison Lambda "Test" returned "fork/exec /var/task/main: exec format error: PathError null" when I built with v1.17 or v1.20. Log Events said "INIT_START Runtime Version: go:1.v15". OK I understand that, but..
    How are you using v1.17 under Lambda in 2022, when in 2023 the steps in the video cause AWS to look for v1.15? Did you also customize something in Lambda (allowing 1.17) which wasn't covered here?

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

      Nothing funny going on that wasn't covered. Maybe it's a regional thing? What region are you trying to deploy to?

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

      same with me . Did u find any solution?

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

      Let me know if u know solution for this error

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

      This problem is because in 7:51 he says that the handler name should be the name of the function entry point "main", but in reality it is the name of the executable generated after the go build process.
      For example if you create a go project named "lambda-something" and inside it you run "go build" the executable name is "lambda-something" so that is the name you should put in the runtime handler not main.

  • @SabbirAhmed-ev4rz
    @SabbirAhmed-ev4rz ปีที่แล้ว

    I am facing en error on importing packages