Working with the AWS CDK v2 Toolkit

Lab Steps

Logging in to the Amazon Web Services Console
Initializing an Application and Listing Stacks Using the AWS CDK Toolkit
Bootstrapping an AWS Environment Using the AWS CDK Toolkit
Synthesizing and Deploying Infrastructure with the AWS CDK Toolkit
Updating Resources with the AWS CDK Toolkit
Cleaning Up Infrastructure with the AWS CDK Toolkit

The hands-on lab is part of these learning paths

Ready for the real environment experience?

Time Limit1h 30m


The AWS Cloud Development Kit v2 (CDK v2) is a software development framework for provisioning and managing AWS cloud resources using code.

The CDK Toolkit is the primary tool for interacting with an application built using the AWS CDK. The CDK Toolkit is essentially the CLI command cdk accompanied by various subcommands, which allow you to initiate, synthesize, and deploy cloud resources to your AWS account.

In this lab, you will walk through the development process of a sample AWS CDK application in an integrated development environment (IDE) to utilize the AWS CDK Toolkit to learn when and how to use the subcommands.

Important: This hands-on lab uses the latest AWS CDK v2. For hands-on labs and challenges that use the AWS CDK v1, refer to the Get Hands-on with the AWS Cloud Development Kit (CDK v1) learning path.

Learning Objectives

Upon completion of this intermediate-level lab, you will be able to:

  • Utilize the AWS CDK v2 Toolkit to manage cloud infrastructure
  • Identify use cases for the various AWS CDK v2 Toolkit subcommands

Intended Audience

  • Cloud Architects
  • DevOps Engineers
  • Software Engineers


Familiarity with the following will be beneficial but is not required:

  • Python Programming
  • AWS CloudFormation

The following content can be used to fulfill the prerequisite:

Environment before
Environment after
About the Author
Learning paths3

Jun is a Cloud Labs Developer with previous experience as a Software Engineer and Cloud Developer. He holds the AWS Certified Solutions Architect and DevOps Engineer Professional certifications. He also holds the AWS Certified Solutions Architect, Developer, and SysOps Administrator Associate certifications. 

Jun is focused on giving back to the growing cloud community by sharing his knowledge and experience with students and creating engaging content.