hands-on lab

Instantiating AWS CloudFormation Resources with L1 CDK Constructs

Difficulty: Intermediate
Duration: Up to 1 hour
Students: 186
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

AWS CDK constructs can represent single AWS services as well as higher-level abstractions that consist of multiple, related resources. These constructs can be found in the AWS Constructs Library and are organized into three layers.

Low-level constructs are referred to as CloudFormation (CFN) Resources or Layer 1 (L1) resources. These types of constructs are direct representations of AWS CloudFormation resources.

In this lab, you will work with an L1 CDK construct to learn how to implement these low-level constructs into your applications.

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:

  • Identify and implement L1 CDK constructs in a CDK application
  • Utilize the AWS CDK v2 Toolkit to initialize, define, and deploy cloud resources

Intended Audience

  • Cloud Architects
  • DevOps Engineers
  • Software Engineers

Prerequisites

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

  • Python Programming
  • AWS CloudFormation
  • Amazon S3

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

Introducing AWS CDK L1 Constructs
Setting up the AWS CDK Project
Defining and Deploying a Layer 1 CDK Construct