Комментарии:
Thank you for this.
ОтветитьIs it possible to test locally via sam if os.environ is added to the code e.g. DB_HOST, DB_PORT for function env variables?
ОтветитьWhat if the lambda connected to dynamo db ? will be connected to the AWS DynamoDB or we need to connect have local dynamo db instance up and running in this case ?
ОтветитьNice tutorial. Can you make simialar to this but this time how to debug cdk app (python) with context (for example -c stage=prepord) in visual studio code? How correctly setup lunch.json?
ОтветитьDo you recommend this process for building step functions? I would think since the step function new visual editor generates a json definition file it’s easy enough to through into version control. Then you can use this to test individual lambdas within the step function locally. Does that makes sense? Or is there a way to use the json definition in this framework without any cdk and still have it included in deployments?
ОтветитьExcelent. I needed this. Thanks. Could you please make a video about awssdkcalls with cdk python?
I’m having a hard time understanding how to find the different information about it.
keep in mind that you have to install aws-cdk.aws-lambda-python-alpha separately
ОтветитьThat was really helpful man, thank you
ОтветитьThanks.
ОтветитьGreat video. Is there a link to docs for this? Looking for the javascript-specific implementation.
ОтветитьThat was very useful. I didn't know that you can do this! Thank you. Here I was testing my lambdas via the lamba management console like a noob
Ответитьif you are using websocket this doesn't work - try to make the decoupled enough so the websocket dependency is not a must
ОтветитьFor the simple function used in this video, you don’t really need CDK. SAM can do everything and Sam local invoke will work too. I believe CDK is necessary when you lambda need to invoke other AWS services like s3 or dynamoDB
ОтветитьThis is good for basic lambdas but usually when you have to deal with other stuff such as SSM parameters, it becomes really dificult to test it this way, in my own experience.
ОтветитьThis is very good . Thanks for this video
ОтветитьCan I do this in TS and cdk? Or is this Sam specific?
ОтветитьGreat video, very clear and easy to follow!
Thank you
Nice trick, but what about when we have to do some stuff with Aurora, DynamoDB or S3 inside the lambda function. And when is using API Gateway using Cognito Authorizers ? Will always need to set CLI session?
ОтветитьThanks for the video! For real life scenario, how do you run this for multiple microservices with API gateway? I ask because I want to unify all my IaaC to CDK but the in ability to test locally stops me from doing that. Serverless framework + serverless-offline plugin does this very easily.
ОтветитьMan doesn't miss. I was reading the blog post by amazon for this like a week ago and you already have a video..
Ответитьserverless is also a good tool for aws lambdas
ОтветитьWill you also do a video what the best way to do an integration test to hit real AWS service? Eg: Send a message to SQS which trigger a lambda function to add item in DynamoDb. How do we test this as part of integration test?
Ответитьreally nice. i'm wondering how i can integrate my lambda layers with this.
Need to RTFM a bit
A great video. Always wanted to test lambda locally.
Ответить