Infrastructure as code framework used: AWS CDK AWS Services used: AWS Lambda, AWS DynamoDB
In this demo you will see:
- How to use Typescript in your Lambda functions and how to deploy it easily using AWS CDK
- AWS CLI already configured with Administrator permission
- AWS CDK - v2
- NodeJS 14.x installed
- CDK bootstrapped in your account
Deploy the project to the cloud:
cdk synth
cdk bootstrap
cdk deploy
When asked about functions that may not have authorization defined, answer (y)es. The access to those functions will be open to anyone, so keep the app deployed only for the time you need this demo running.
To delete the app:
cdk destroy
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template