GO without SERVERS? How to Deploy Go to Lambda

  Рет қаралды 16,664

Melkey

Melkey

10 ай бұрын

Welcome to our comprehensive tutorial on deploying Go code to a serverless AWS Lambda function! 🚀
In this video, we'll walk you through the entire process, from setting up your AWS environment to writing and deploying your Go code. Whether you're a seasoned developer looking to dive into serverless computing or a Go enthusiast eager to explore AWS Lambda, this tutorial has got you covered.
Here's a sneak peek at what you'll learn:
🔹 Writing efficient and scalable Go code for serverless applications.
🔹 Packaging your Go code and dependencies.
🔹 Deploying your code to AWS Lambda.
🔹 Testing and monitoring your serverless function.
Our step-by-step instructions and practical tips will ensure that you gain a deep understanding of the deployment process, enabling you to build and deploy serverless applications with confidence.
Twitch
I stream live on Twitch every weekend
Twitch : / melkey
Join the amazing community on Discord
Discord: / discord
I post memes and host Twitter Tech Spaces
Twitter: / melkeydev
SUBSCRIBE OR GET LAID OFF
╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝
#coding #neovim #typescript #programming #vim #softwareengineering #codinglife #webdesign #webdevelopment #webdev #javascript #rustlang #rust #twitch #twitchstreamer #programmerhumor #codinghumor #software #softwareengineer #softwaredeveloper #softwaredevelopment #gymbro #gym #programmerhumor #programming #coding

Пікірлер: 55
@MelkeyDev
@MelkeyDev 10 ай бұрын
This was such a fun video to make - it is my longest video to date. I hope you all find it helpful and useful. Let me know if you would change anything or what videos you want to see in the future!
@charleschen4093
@charleschen4093 10 ай бұрын
awesome content!
@andresgutgon
@andresgutgon 10 ай бұрын
Super nice
@blakegreendev
@blakegreendev 10 ай бұрын
Why not use go for CDK as well?
@SirFlak
@SirFlak 10 ай бұрын
As someone that doesn´t work with AWS or Go (yet), this video is really informative and easy to follow! Great job!
@emil_l889
@emil_l889 10 ай бұрын
Deploying today thanks to this vid, bless up fam
@FabulousFadz
@FabulousFadz 10 ай бұрын
Been watching without subscribing. The algorithm just kept recommending you and I thought I was subscribed. Until I saw the crossover event with Prime earlier today (comment incoming) and saw that I wasn't subscribed. Corrected it here. Recent Go convert from C#... Funny thing is I had started to make C# content then my eyes were opened... now I'm planning content for Go that will include info for people coming from C# and other languages I've used. Been watching tons of Go content to see how others are doing it and what they're covering to find my formula. Your videos have been helpful
@zevo92
@zevo92 10 ай бұрын
Really liked the video. Looking forward to more !
@MelkeyDev
@MelkeyDev 9 ай бұрын
Awesome, thank you!
@InnocuousParadox
@InnocuousParadox 10 ай бұрын
Go runtime is being migrated/deprecated. Maybe you can update the video to cover this? Awesome video to get people started with Go serverless!
@Phaceial
@Phaceial 10 ай бұрын
The only thing you have to do is just containerize it and use the custom runtime option for lambdas. It's pretty trivial if you ever deployed anything to fargate.
@thisisreallyme3130
@thisisreallyme3130 2 ай бұрын
+1 to just showing how to do it with theGo runtime (or whatever it was updated to). I think most of the folks watching (and asking, myself included) aren't yet at the experience level where it's "trivial" to blaze your own solution. (If we were at that level, would we be watching a Hello World Go Lambda tutorial? Probably not)
@omarcrosby
@omarcrosby 7 ай бұрын
Loved it thanks.
@bumpy_lumps
@bumpy_lumps 10 ай бұрын
love getting some time in the lab with this one, Go FTW
@emil_l889
@emil_l889 10 ай бұрын
Oh my goodness a long schmelkey video!!!! Friday W
@chalopdev
@chalopdev 10 ай бұрын
When I saw your tweet on this, I wished upon a star that you would make a vid about it. Wishes come true, thanks!
@s.adnansami5106
@s.adnansami5106 3 ай бұрын
paganism but ok...
@kiyov09
@kiyov09 10 ай бұрын
Hot stuff 🔥. Very cool
@doodooti-ch
@doodooti-ch 12 күн бұрын
Thanks for this ❤️, can u do a complete course a bout aws serverless using Go
@MelkeyDev
@MelkeyDev 12 күн бұрын
I have one - check it out at Frontend Masters
@moonsteroid
@moonsteroid 9 ай бұрын
Great video, to simplify this even further you could use the serverless framework instead of cdk as it makes things way easier to deploy! I really like the combo of serverless + go
@MelkeyDev
@MelkeyDev 9 ай бұрын
Great tip!
@ilya2898
@ilya2898 10 ай бұрын
would love more cdk vids
@laurentcharles7179
@laurentcharles7179 7 күн бұрын
Thanks for sharing. I would also like to know how do I run the local service as well.
@alexgochenour8740
@alexgochenour8740 8 ай бұрын
Thank you for this fine presentation. This is a good format. Some suggestions, imho, would be to add explanations to a few things. I've used Lambdas plenty, but never with the CDK and Go together. Why did you choose to deploy with that rather than the Serverless Framework or some other tech? Why test with the curl program as opposed to Postman etc.? While these weren't new to me, I hadn't used either in a while and wonder how less experienced devs might react. You might also add a few quick troubleshooting pointers, such as making sure the AWS region is correct, and common beginner mistakes.
@MelkeyDev
@MelkeyDev 8 ай бұрын
Love this feedback - thank you
@3abdoB6a
@3abdoB6a 10 ай бұрын
Great vid melky I use GCP they have 3 month (300$) for free
@dogfrogfog
@dogfrogfog 10 ай бұрын
would love to hear about infra as a code
@mvaldes
@mvaldes 10 ай бұрын
This is a devops channel now. Cool
@Muhammed-nani964
@Muhammed-nani964 10 ай бұрын
time to create a project for testing aws
@JohnBrosan
@JohnBrosan 9 ай бұрын
I’m new to the AWS CDK, but is my assumption that creating a sub folder under lambdas for specific lambdas is how that works? So, /lambdas/myuserapi ?
@ShubhamYadav-nv5hf
@ShubhamYadav-nv5hf 9 ай бұрын
Can this work with GCP cloud functions??
@ivoneijr
@ivoneijr 7 ай бұрын
repoooo dude! 😅
@MelkeyDev
@MelkeyDev 7 ай бұрын
I truthfully believe the best way to learn is to not just copy and paste from existing repo's but next one I will
@ivoneijr
@ivoneijr 7 ай бұрын
​@@MelkeyDev Me too, but sometimes people don't want to learn something, they are looking for a shortcut. PS* awesome content and explanations!
@Endurancecoach00
@Endurancecoach00 10 ай бұрын
Is it vercel or verchel?
@EVGizmo
@EVGizmo 10 ай бұрын
The question is now do I do all my apps in AWS Serverless or no
@KevinNaughtonJr
@KevinNaughtonJr 10 ай бұрын
FIRST
@jimmytango
@jimmytango 9 ай бұрын
not sure what im doing but i followed this twice so far and keep getting hit with "message": "internal server error"
@MelkeyDev
@MelkeyDev 9 ай бұрын
How are you deploying? What route are you calling? Consider joining the Discord and I can help you out better
@travistarp7466
@travistarp7466 8 ай бұрын
Had the same issue, you have to compile to proper architecture `GOOS=linux GOARCH=amd64 go build -tags lambda.norpc -o bootstrap main.go` , You can also set the arch in myFunction ` const myFunction = new lambda.Function(this, "MyLambda", { code: lambda.Code.fromAsset("lambdas"), handler: "main", runtime: lambda.Runtime.PROVIDED_AL2023, architecture: lambda.Architecture.X86_64, });`
@jimmytango
@jimmytango 8 ай бұрын
@@travistarp7466i just tried that and it didnt work. keeps return forbidden. is there user bs that needs to be configured as well?
@jaswdrTheDev
@jaswdrTheDev 5 ай бұрын
Why not define the CDK code using Go instead of Typescript? The Python, Go, Java and other interfaces are as well defined as the TS version.
@MelkeyDev
@MelkeyDev 5 ай бұрын
I just like the TS implementation!
@IvanRandomDude
@IvanRandomDude 10 ай бұрын
Serverless is when you have millions of servers instead of one. Checkmate, atheists!
@BboyKeny
@BboyKeny 9 ай бұрын
It's serverless not serversless
@fille.imgnry
@fille.imgnry 10 ай бұрын
Waaaat? AWS console has dark mooodee?? Oohh
@LowkeyAbu
@LowkeyAbu 10 ай бұрын
Server-less? Or Server-more? 👀
@sakelig4389
@sakelig4389 10 ай бұрын
This Is The BEST Way To Structure Your GO Projects
11:08
Melkey
Рет қаралды 65 М.
Why I often use AWS lambda and serverless architecture
10:09
Web Dev Cody
Рет қаралды 13 М.
I Can't Believe We Did This...
00:38
Stokes Twins
Рет қаралды 97 МЛН
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
Lizzy Isaeva
Рет қаралды 60 МЛН
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 53 МЛН
Deploy FastAPI on AWS Lambda ⚡ Serverless hosting!
22:24
pixegami
Рет қаралды 37 М.
32 Reasons WHY TS IS BETTER Than Go
1:09:29
ThePrimeTime
Рет қаралды 235 М.
Beginners Should Think Differently When Writing Golang
11:35
Anthony GG
Рет қаралды 97 М.
How To Structure Your Golang (API) Projects!?
20:28
Anthony GG
Рет қаралды 45 М.
Why I Use Golang In 2024
9:21
ThePrimeTime
Рет қаралды 264 М.
Use Docker for Your Golang Projects with Live Reloading
6:34
Deploy a SpringBoot 3 API on AWS Lambda in 10 minutes
9:16
James Eastham
Рет қаралды 8 М.
The TRUTH About Golang Backend Frameworks
6:31
Melkey
Рет қаралды 104 М.
How to Run a Python Docker Image on AWS Lambda
13:08
pixegami
Рет қаралды 27 М.
Your First AWS Lambda Function with Go
9:27
Brian Morrison
Рет қаралды 16 М.
Собери ПК и Получи 10,000₽
1:00
build monsters
Рет қаралды 2,4 МЛН
Опять съемные крышки в смартфонах? #cmf
0:50
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 3 МЛН