Writing Your Own AWS CDK Constructs in Python

Lab Steps

lock
Logging in to the Amazon Web Services Console
lock
Configuring the AWS Command Line Interface
lock
Reviewing Your Python AWS CDK Application
lock
Standardizing S3 Bucket Configurations with CDK Constructs in Python

The hands-on lab is part of this learning path

Ready for the real environment experience?

DifficultyIntermediate
Time Limit1h
Students89
Ratings
5/5
starstarstarstarstar

Description

The AWS CDK construct library contains classes that shape the AWS resources in your stack and come with proper defaults that allow you to focus on developing your application without worrying too much about resource details. This is useful for developing prototypes or smaller applications quickly and establishing a proof-of-concept, but what happens when the application or your development team grows?

Writing your own custom CDK constructs provides the following benefits:

  • Establish organization standards to follow best practices
  • Ensure AWS resource conventions continue to be adhered to as your application or team grows
  • Reduce the amount of code developers need to write by extracting repetitive sections

In this lab, you will refactor an existing CDK application by creating your own custom S3 construct. The process of writing your own custom constructs outlined in this lab can be applied to your own projects and development teams to fit your specific needs.

Learning Objectives

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

  • Write a custom S3 Bucket construct with the AWS CDK
  • Refactor a CDK application to implement custom CDK constructs that you create

Intended Audience

  • Cloud Architects
  • DevOps Engineers
  • Software Engineers

Prerequisites

Familiarity with the following will be beneficial:

  • AWS Cloud Development Kit
  • Python Programming

The following courses and labs can be used to fulfill the prerequisite:

Environment before
PREVIEW
arrow_forward
Environment after
PREVIEW
About the Author
Students12260
Labs28
Learning paths1

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.