hands-on lab

Accelerating Deployments with AWS CDK Hotswap and Watch

Difficulty: Intermediate
Duration: Up to 1 hour
Students: 64
Rating: 5/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

Frequent iterations and deployments are to be expected during the development stage of an AWS CDK application. The AWS CDK Toolkit (CLI) provides developers with tools that can accelerate the development process by monitoring and performing updates as code changes are being made in real-time.

In this lab, you will explore hotswap deployments and the CDK watch command. You'll learn the differences between the two operations and how to best utilize them as you grow your application.

Learning Objectives

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

  • Perform hotswap deployments to update AWS Lambda source code
  • Configure CDK watch to perform automatic deployments triggered by code updates

Intended Audience

  • Cloud Architects
  • DevOps Engineers
  • Software Engineers

Prerequisites

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

  • AWS CDK
  • AWS Lambda

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
Setting up the AWS CDK Project
Accelerating Development with AWS CDK Hotswap Deployments
Monitoring and Deploying Updates with AWS CDK Watch