hands-on lab

Accelerating Deployments with AWS CDK Hotswap and Watch

Intermediate
Up to 1h
59
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

About the author

Avatar
Jun Fritz, opens in a new tab
Cloud Labs Developer
Students
40,577
Labs
109
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
Setting up the AWS CDK Project
Accelerating Development with AWS CDK Hotswap Deployments
Monitoring and Deploying Updates with AWS CDK Watch