You should explore the contents of this project. It demonstrates a CDK app with an instance of a stack (SkjlMeBeStack)
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.
See this useful workshop on working with the AWS CDK for Typescript projects.
-
npm run buildcompile typescript to js -
npm run watchwatch for changes and compile -
npm run testperform the jest unit tests -
cdk deploydeploy this stack to your default AWS account/region -
cdk diffcompare deployed stack with current state -
cdk synthemits the synthesized CloudFormation template -
cdk --versionTo get the current version of the CDK -
aws sts get-caller-identity --profile fffto get the account number of the currently selected profile