- Setup project for this
virtualenv env
source env/bin/activate
pip install boto3 pyyaml datadog
Create DynamoDB tables
aws dynamodb create-table \
--table-name uploaded-files \
--attribute-definitions AttributeName=file_name,AttributeType=S \
--key-schema AttributeName=file_name,KeyType=HASH \
--billing-mode PAY_PER_REQUEST
Run the app
python main.py
Checking the Datadog metrics (Do this on query data box)
sum:s3.upload.success by {1 weeek}
sum:s3.upload.failed by {<1 week>}