Before you build/deploy the CDK package, you need to specify a target account id and a region.
export CDK_DEPLOY_ACCOUNT=<AWS ACCOUNT ID>
export CDK_DEPLOY_REGION=<REGOIN>
You need to store your App's slack token and user name in a Secrets Manager secret named 'SlackTokenForBMO'.
SLACK_TOKEN: <App's slack token> (something begins with xoxb- or xoxp-)
APP_UNAME: <App's user name> (something like U01234ABCDE)
This is a blank project for TypeScript development with CDK.
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