Build Lambda based REST API entirely through code - API Gateway, SAM & Terraform

  Рет қаралды 18,463

Prasad Domala

Prasad Domala

Күн бұрын

Пікірлер: 27
@piyh3962
@piyh3962 2 жыл бұрын
What a dense nugget of a video. I just started a new job as a cloud backend engineer and this architecture is going to be the blueprint for my next 3 months. Thanks so much.
@razrides
@razrides 4 жыл бұрын
This is awesome, thank you for sharing. I was able to follow along. I hit a snag during "terraform plan" but was able to fix that by creating the dynamo table with the LockID index for the backend part.
@qiaoweiliu3647
@qiaoweiliu3647 3 жыл бұрын
Awesome ! BTW, how can i config the authorization for the api gateway? Like COGNITO?
@YourXLNerd
@YourXLNerd 4 жыл бұрын
wow great vid! What is the advantage of having sam and terraform? If you can build the resources directly in terraform, what does SAM do at that point? Thanks!
@PrasadDomala
@PrasadDomala 4 жыл бұрын
SAM makes it easy to build and test Lambda functions locally. I prefer using SAM for Lambda functions and for rest of the resources I use Terraform. I even prefer to use Terraform to deploy SAM stack so that I can parameterize SAM template for multi environment deployments.
@davethorn9423
@davethorn9423 2 жыл бұрын
This might be a dumb question but why do you use SAM over provisioning using Terraform is it just for local testing
@onomatopeia891
@onomatopeia891 3 жыл бұрын
I'm getting the following response on Postman: { "message": "Forbidden" } Can anyone help? I have tested it on AWS Console API Gateway and it worked but not on Postman. Thank you.
@lucasjleandro
@lucasjleandro 3 жыл бұрын
Thank you, you saved me
@johnjosephfernandes
@johnjosephfernandes 4 жыл бұрын
What would be recommended way of development ? Using the oas3 documentation or using terraform resources to build each api resources ?
@lenaschneider9746
@lenaschneider9746 4 жыл бұрын
Great video Prasad! Exactly the flow and the explanation I was looking for. I had one question though - I managed to build and deploy everything except noticed an error messages coming from 'sam build' command. It was unable to resolve attributes from 'Outputs' in sam-template.yaml (Unable to resolve property Role: OrderedDict([('Fn::GetAtt', 'LambdaRole.Arn')]). Leaving as is.
@syedubaise8724
@syedubaise8724 4 жыл бұрын
Hi Prasad.Good video. What is the command line tool you are using ?
@munamtariq1779
@munamtariq1779 4 жыл бұрын
Can i reference already existing API gateway in SAM template file?
@helenlam9195
@helenlam9195 4 жыл бұрын
Very concise video. Thank you! Why do you prefix some terraform files with "tf_"?
@PrasadDomala
@PrasadDomala 4 жыл бұрын
Its just my personal preference. I prefix templates with aws resources as aws_ and terraform resources with tf_
@eebalo
@eebalo 4 жыл бұрын
Great video. I am just looking to learn terraform and was going to take my existing rest API services to start infrastructure as code. Curious, what did you use to draw the architecture?
@shanindrakumar9944
@shanindrakumar9944 4 жыл бұрын
this video skips lot of steps or assumes user knows what to do: I think you need to put a disclaimer somewhere so users don't get confused
@ramachandrarajaravi
@ramachandrarajaravi 4 жыл бұрын
This is very nice could you please provide the same architecture using python for lambda ? or steps for using python lambada in this video.
@BestHKisDLM
@BestHKisDLM 3 жыл бұрын
Thank you 👌
@kashyapkiran1729
@kashyapkiran1729 4 жыл бұрын
Great one. Just the video quality is not good.
@PrasadDomala
@PrasadDomala 4 жыл бұрын
Thanks. The video is in 4k. May know what problem you are seeing with the video quality?
@kashyapkiran1729
@kashyapkiran1729 4 жыл бұрын
I saw the max resolution of the video was showing 360p . Now it is showing 480p
@PrasadDomala
@PrasadDomala 4 жыл бұрын
I guess it must be your network connectivity. The video is in 4K.
@jhuanpressley6398
@jhuanpressley6398 4 жыл бұрын
this video is very frustrating..I am not sure if you uploaded this to just show that you can do it or to teach people how to do it.. you rushed through everything and took little time explaining anything. It is obvious that you are not a teacher.. should have known when you claim to do so much in under 25 mins.. I will try to muster through the fast paced video clicking pause every 2 seconds to hopefully teach myself some of what you are doing.. thanks for the content but delivery feels too rushed
@PrasadDomala
@PrasadDomala 4 жыл бұрын
Thanks for your feedback. Please note that this is not a follow along video. I hope you know you can adjust the speed to your liking on KZbin.
@jhuanpressley6398
@jhuanpressley6398 4 жыл бұрын
@@PrasadDomala oh ok so more of a presentation than a teaching moment ... ty for your response.. I understand now
@ratneswarmarre4811
@ratneswarmarre4811 3 жыл бұрын
Dear Prasad, great video, however had some issues when I try to run your code as it is, these are the issues - what are the environment variables set for this demo? - sam package you are passing $SAM_CODE_BUCKET (where did you set this variable?), it worked when I set env variable ($SAM_CODE_BUCKET) before running below command sam package --template-file sam-template.yaml --output-template-file sam-deploy.yaml --s3-bucket $SAM_CODE_BUCKET - I have to create bucket before running above command, I thought it will create configured bucket, am I missing any step? - I am getting below region error during terraform init, even though I have changed to us-east-1 all hard coded region values ap-northeast-1 in the code, any other configuration require to read default user region? Successfully configured the backend "s3"! Terraform will automatically use this backend unless the backend configuration changes. Error refreshing state: AuthorizationHeaderMalformed: The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'ap-northeast-1' status code: 400, request id: SVZ14YZHN8TT5C8T, host id: mu0yJ0KjS0JyxUQSXLKuJC7OvwNLB9iHW3+/png+F4fhcn0dk46jhyRzDrymb9TqrQHJtorRlmg= - what are the aws user permission/roles require to successfully execute this demo.
Terraform AWS Api gateway + Lambda Integration 🚀
28:08
AWS cloud demos
Рет қаралды 3,5 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
37:51
bayGUYS
Рет қаралды 1,7 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 39 МЛН
Building a Serverless REST API in .NET with AWS Lambda
20:13
Nick Chapsas
Рет қаралды 78 М.
Using Terraform with AWS SAM | Serverless Office Hours
48:44
Serverless Land
Рет қаралды 3,7 М.
Why should you use an API Gateway?
19:19
ProgramArtist
Рет қаралды 57 М.
Start using Terraform with AWS
23:42
Sam Meech-Ward
Рет қаралды 6 М.
Build a REST API using AWS Lambda and API Gateway
24:12
Jonathan Davies
Рет қаралды 13 М.
AWS Lambda Terraform Tutorial with API Gateway
24:03
TeKanAid
Рет қаралды 16 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
37:51
bayGUYS
Рет қаралды 1,7 МЛН