hands-on lab

Working with the AWS CDK v2 Toolkit

Intermediate
Up to 1h 30m
992
4.1/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.
Lab description

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

Prerequisites

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:

Updates

April 17th, 2024 - Resolved IAM permission issue

August 16th, 2023 - Remove Node deprecation warning and updated CDK CLI version

March 13th, 2023 - Enabled autosave in the lab's browser IDE

Environment before
Environment after
About the author
Avatar
Jun Fritz, opens in a new tab
Cloud Labs Developer
Students
39,533
Labs
106
Courses
1
Learning paths
6

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. 

Covered topics
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