Open anu1667 opened 1 year ago
To run a function on AWS Lambda Create a Lambda function ->configure an event source that triggers the function's execution.
Successfully deployed JS fizzbuzz code on AWS Lambda Working on Serverless framework Also trying methods to code typescript on Lambda - AWS CLI and AWS SAM
As mentioned by Matt, You can drop the idea of implementing typescript code in lambda Nodejs runtime for this exercise. Just javascript is enough.
Serverless method to implement -
Once done, put up your links to access lambda here in the comments.
Also delete any unused resource on AWS.
GET - https://3y4miqooj9.execute-api.us-east-1.amazonaws.com/PROD POST - curl -X POST https://3y4miqooj9.execute-api.us-east-1.amazonaws.com/POST -d '{"a": 5, "b": 10}' lambda - REST API
POST - curl -X POST -d '{"a":5,"b":8}' https://rqv37rwp2b.execute-api.us-east-1.amazonaws.com/dev/hello GET -https://rqv37rwp2b.execute-api.us-east-1.amazonaws.com/dev/hello Endpoints generated via Using serverless framework
If I try to replicate the else part, I get Internal server error. That is because in line 22 response is used before initialisation.
Deploy the Fizzbuzz program and Rest server created in #2 to AWS Lambda
Note: You can deploy just the typescript version of both