cdkctl
This tool is benefical if you intend to run cdk stacks concurrently(parallel) thus saving time to run each stack sequentially.
Contents
Installing
Use the following to be able to install on MacOS or Linux:
Install using make
- Clone the repo,
- Make sure you have go > go1.14.2 installed
- Run
make local
Install using brew
brew tap maheshrayas/cdkctl
brew install cdkctl
Install on Windows & Linux
Commands
Run all the stacks in parallel
Refer: stacks.json and args.json to describe stacks name and context arguments (runtime)
Sample commands:
- With no run time arguments
cdkctl deploy --stacks-file configs/stacks.json --tool-kit toolkit-name
2.With runtime (context) arguments
cdkctl deploy --stacks-file example-configs/stacks-all.json --tool-kit toolkit-name --args example-configs/args.json
3.If stacks are dependent on each other you can frame the json as described in stacks-dependent
cdkctl deploy --stacks-file example-configs/stacks-dependent.json --tool-kit toolkit-name --args example-configs/args.json
4.Destroy all the stacks
cdkctl destroy --stacks-file example-configs/stacks-all.json --tool-kit toolkit-name