- 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.json
file tells the CDK Toolkit how to execute your app.
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testsnpx cdk deploy
deploy this stack to your default AWS account/regionnpx cdk diff
compare deployed stack with current statenpx cdk synth
emits 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