- there are two lambda functions placed in the
src/folder - all stacks are described in
lib/serverless-ws-stack.ts - aws account is determined by the cli/environment variables, so make sure you set them properly to any kind of playground account
- the
cdk.jsonfile 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 testsnpx cdk deploydeploy this stack to your default AWS account/regionnpx cdk diffcompare deployed stack with current statenpx cdk synthemits the synthesized CloudFormation template
- get notes:
curl https://XXXXXX.execute-api.eu-central-1.amazonaws.com/notes - put notes:
curl -X POST https://XXXXXX.execute-api.eu-central-1.amazonaws.com/notes --data '{ "title": "Hello World", "content": "abc" }' -H 'Content-Type: application/json' -i - wanna try out load? try
hey -n 1000 -m GET https://XXXXXX.execute-api.eu-central-1.amazonaws.com/notes
