You should explore the contents of this project. It demonstrates a CDK app with an instance of a
stack (sagemakerStudioCDK
)
This project uses a simple structure for sources, tooling and testing.
Just execute make
to see what you can do.
You will need to have Python 3.8 installed. After this you just need to call
$ make install
The initialization process also creates a virtualenv within this project, stored under the venv directory.
It will also install AWS cdk command by calling npm install -g aws-cdk
.
It is tested with Python 3.8.x.
You can use make .venv
to create Python environment for this project.
To add additional dependencies, for example other CDK libraries, just add
them to your setup.py
file and rerun the make install
command.
Project uses PyTest for a simple testing approach. For reference visit: https://docs.pytest.org/en/latest/index.html
At this point you can now synthesize the CloudFormation template for this code.
cdk synth
After this, use deploy command to deploy CloudFormation stack.
cdk deploy
Review the resources that AWS CDK creates for you in your AWS account and choose yes to deploy the stack.
Wait for your stack to be deployed by checking the status on the AWS CloudFormation console.
Enjoy!
cdk ls
list all stacks in the appcdk synth
emits the synthesized CloudFormation templatecdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk docs
open CDK documentation
Follow this step to remove the resources that were deployed in this post.
cdk destroy
When asked to confirm the deletion of the four stacks, select “y
”.
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.