AWS CDK – Deploying Stacks

Now type :

ls

Make sure you’re in the same directory as cdk.json (cdk command will fail if not)

cd .. for going back the previous directory

CDK

Now type:

cdk synth  BucketDeploymentStack

CDK

We have synthesizing the deployment stack but it still hasn’t developed yet, to do that we’ll type:

cdk deploy BucketDeploymentStack

If ask for deploy changes just press y (yes).

CDK

If it successfully deployed, the result should be like this: CDK

You could use to upgrade cdk to latest version:

npm install -g aws-cdk