hands-on lab

Managing Assets with the AWS CDK v2
Intermediate
45m
108
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.
Lab description

AWS CDK assets consist of local files, directories, or Docker images that represent artifacts required by your application. Assets can either be stored in an Amazon S3 bucket or Amazon ECR repository, both of which are created on your behalf during the CDK bootstrapping process. The AWS CDK is capable of bundling and managing these assets during your stack deployments.

In this lab, you will learn about the two CDK asset types and incorporate one of them in a sample CDK application.

Learning objectives

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

  • Bundle function source code and file assets with an AWS CDK application
  • Deploy an AWS Lambda Function with the AWS CDK

Intended audience

  • Cloud Architects
  • DevOps Engineers
  • Software Engineers

Prerequisites

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

  • AWS CDK
  • Amazon S3
  • AWS Lambda

The following content can be used to fulfill the prerequisite:

Updates

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 before preview
Environment after
environment after preview
About the author
Avatar
Jun Fritz
Cloud Labs Developer
Students
36,358
Labs
96
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
Exploring AWS CDK Asset Types
Setting up the AWS CDK Project
Defining an AWS Lambda Function Using Amazon S3 Assets