Install the CDK CLI globally
npm install -g aws-cdk
Change directory to any example
cd sagemaker
Install dependencies
npm install
Set environment variables
vim .env
Deploy using the CDK CLI
cdk deploy
or deploy to non-default AWS profile
cdk deploy --profile my_profile
-
cdk diff
Prints out the difference in stacks -
cdk destroy
Removes the stack -
cdk list
List the applications in given folder -
cdk synth
Synthesizes and prints the CloudFormation template for the stack -
cdk init
Generates a new cdk project -
cdk doctor
Checks the CDK setup