Serverless stack!

In this chapter, we will finally write some CDK code, we’ll add a Lambda function with an API Gateway endpoint in front of it.

Users will be able to hit any URL in the endpoint and they’ll receive a number of times you visit the url from our function. Hello

Install API Gateway, Lambda, DynamoDB construct library.

Update your sls-app\requirements.txt

-e .
pytest

aws-cdk.aws_dynamodb
aws-cdk.aws-lambda
aws-cdk.aws_apigateway

And then run command:

pip install -r requirements.txt