hands-on lab

Working with the AWS CDK v2 Toolkit

Difficulty: Intermediate
Duration: Up to 1 hour and 30 minutes
Students: 1,161
Rating: 4.2/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.

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

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