You should explore the contents of this project. It demonstrates a CDK app with an instance of a stack (AutoEventsStack
)
which contains an Amazon SQS queue that is subscribed to an Amazon SNS topic.
The cdk.json
file tells the CDK Toolkit how to execute your app.
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
- Run
pip install -r requirements.txt
. - Set environment variables
UBI_AUTH
,EVENT_NAME
,CLUB_ID
,CAMPAIGN_ID
,EVENT_CLUB_ID
,MAPS_CLUB_ID
,SECRETS_BUCKET_NAME
, andSTORAGE_BUCKET_NAME
(these are all necessary for integration tests). Make sure that separate storage and secret s3 buckets exist in your AWS account. - Run
aws configure
with your public and secret AWS access key. - Set environment variable
STAGE
to "dev", as this will be used for deploying your personal stack to test with. - Start using the Useful Commands to play around!