Repository with AWS cdk scripts for docker-swarm training infrastructure deployment.
- Node (
brew install npm
) - AWS CDK (
npm install -g aws-cdk
) - Install AWS cli v2
- Configure your aws cli with the right credentials for the dev environment (available in Lastpass with the name
CDK Credentials
) - For more details / up to date installation guidance, see the AWS official docs
First run:
npm install
Build and see what changes would be deployed:
npm run build
ornpm run watch
cdk diff
(example of not-harmful cdk command to ensure you have the right access)
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