This will deploy:
- API Gateway
- DynamoDB table 'hitcounter' for tracking hits to each site the lambda function is executed from
- Lambda Function in python for updating the hits to DynamoDB
- Grants permission for lambda to write to dynamodb
The cdk.json file tells the CDK Toolkit how to execute your app.
npm run buildcompile typescript to jsnpm run watchwatch for changes and compilenpm run testperform the jest unit testscdk deploydeploy this stack to your default AWS account/regioncdk diffcompare deployed stack with current statecdk synthemits the synthesized CloudFormation template