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 buildcompile typescript to jsnpm run watchwatch for changes and compilenpm run testperform the jest unit testscdk deploydeploy this stack to your default AWS account/regioncdk diffcompare deployed stack with current statecdk synthemits 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 configurewith your public and secret AWS access key. - Set environment variable
STAGEto "dev", as this will be used for deploying your personal stack to test with. - Start using the Useful Commands to play around!