$ npm install -g aws-cdk$ python -m venv .venv$ source .venv/bin/activateOnce the virtualenv is activated, you can install the required dependencies.
$ pip install -r requirements.txtAt this point you can now synthesize the CloudFormation template for this code.
$ cdk synthYou can now begin exploring the source code, contained in the hello directory. There is also a very trivial test included that can be run like this:
$ pytestTo add additional dependencies, for example other CDK libraries, just add to
your requirements.txt file and rerun the pip install -r requirements.txt
command.
cdk lslist all stacks in the appcdk synthemits the synthesized CloudFormation templatecdk deploydeploy this stack to your default AWS account/regioncdk destroydestroy your deploymentcdk diffcompare deployed stack with current statecdk docsopen CDK documentation
$ eval "$(ssh-agent -s)"
$ ssh-add -K name-of-your-key.pem
$ ssh -A user@bastion_host_FQDN_or_public_IPEnjoy!