Use this to set up a demo API in AWS that exposes sensitive customer data.
The API is not publicly accessible but will appear in a FireTail AWS resource scan.
- Navigate to the CloudFormation > Stacks
- Select 'Create Stack' > 'With new resources (standard)'
- Select 'Choose an existing template' and 'Upload a template file'
- Select either the DynamoDB or S3
cf-template.yaml
file from this repo and click 'Next' - Enter your desired stack name and click 'Next' again
- Leave the defaults in place and click through to resource completion
- Get the S3 bucket name and/or DynamoDB table name from the 'Resources' once the resources have been provisioned
aws cloudformation deploy --template-file dynamodb-example/cf-template.yaml --stack-name ${your_stack_name}
or
aws cloudformation deploy --template-file s3-example/cf-template.yaml --stack-name ${your_stack_name}
Assuming you have Python 3 installed:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
then, if S3
S3_BUCKET_NAME=${your_bucket} python3 s3-example/populate.py
or for DynamoDB
DDB_TABLE_NAME=${your_table} python3 dynamodb-example/populate.py