Allocating Resource Attributes with AWS CDK Tokens
Lab Steps
The hands-on lab is part of this learning path
Ready for the real environment experience?
Description
AWS CDK Tokens represent resource attributes or values that are meant to be resolved during later stages of a CDK application's lifecycle. Tokens can be resolved in either the synthesis or deployment stage of your application. CDK tokens can serve as placeholders within your stack definitions in order to build your infrastructure without requiring the actual values of certain attributes. Dynamically resolved tokens improve the reusability of your stack definitions.
In this lab, you will deploy a CDK application that uses tokens to define certain resource attributes. The values for each token will be sourced from AWS CloudFormation deployment parameters or the AWS Systems Manager Parameter Store.
Learning Objectives
Upon completion of this intermediate-level lab, you will be able to:
- Explore the differences between resolving tokens at deployment vs. synthesis time
- Deploy an AWS CDK application using AWS CloudFormation Parameters
- Access AWS Systems Manager Parameter Store in your CDK stack
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
- AWS CloudFormation
- AWS Systems Manager Parameter Store
The following content can be used to fulfill the prerequisite:
- Separating Data and Code with AWS Systems Manager Parameter Store
- Defining Cloud Infrastructure with the AWS CDK v2 in Python
- Introduction to Amazon S3
- Introduction to AWS Lambda
Updates
March 13th, 2023 - Enabled autosave in the lab's browser IDE
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.