The cdk.json
file tells the CDK Toolkit how to execute your app.
Command | Action |
---|---|
npm install |
Install dependencies |
npm run build |
Compile typescript to js |
npm run watch |
Watch for changes and compile |
npm run test |
Run the unit tests |
npm run cdk ... |
Run CLI commands |
npm run format |
Format code with prettier |
cdk deploy --outputs-file cdk-outputs.json |
Deploy to configured account/regions |
cdk diff |
Compare deployed stack with current state |
cdk synth |
Emits the synthesized CloudFormation template |
The DemoEnvironments
stack is used to create and manage demo envs.
Remove the relevant resources or add more as needed.
cdk deploy --outputs-file cdk-outputs.json DemoEnvironments
Ansible is used to manage demo environments.
Update the demo hosts in hosts.yml
when envs are changed.
$ cd ansible
$ ansible-playbook -i hosts.yml playbook.yml -u ubuntu