- Node >= 12
yarn
(recommended) ornpm
-
Clone this repo.
-
Edit the
region
in lambda-container.ts to where you would like to deploy. -
Comment out the Lambda function snippet first so that the ECR repo is created first and then run
yarn cdk deploy
. -
Run the docker commands shown in the ECR console to deploy your image in the app directory.
-
Uncomment the Lambda function and run
yarn cdk deploy
again so that the function gets the image present in ECR.
The cdk.json
file tells the CDK Toolkit how to execute your app.
yarn build
compile typescript to jsyarn watch
watch for changes and compileyarn test
perform the jest unit testsyarn cdk deploy
deploy this stack to your default AWS account/regionyarn cdk diff
compare deployed stack with current stateyarn cdk synth
emits the synthesized CloudFormation template