Allocating Resource Attributes with AWS CDK Tokens
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
September 24th, 2024 - Resolved command issue
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