The AWS DynamoDB, Lambda, and CloudWatch Example App creates an AWS DynamoDB and Lambda function with the Python language bindings for CDK. Lambda function gets triggered from a CloudWatch event every minute.
Locate and open CloudShell using the search bar in the AWS Console:
Then, enter the following commands in sequence:
wget https://nr-serverless-workshop.s3.us-west-2.amazonaws.com/dynamodb-lambda.tar.gz
tar xvfz dynamodb-lambda.tar.gz
cd dynamodb-lambda
python3 -m venv .env
source .env/bin/activate
pip install -r requirements.txt
sudo npm i -g aws-cdk
cdk bootstrap
cdk deploy
When prompted, type y and hit enter/return to confirm installation:
After a couple of minutes, you should see the following information in CloudShell:
Congratulations! You have successfully installed the example application that will be used for the remainder of this workshop.