This lab provides you with an overview of the AWS CDK.
Level
Intermediate
Duration
2 Hours 0 MinutesCourse Objectives
In this course, you will learn how to:
- Create new AWS CDK applications
- Define your application's infrastructure using the AWS Construct Library
- Deploy your AWS CDK applications to your AWS account
- Define your own reusable constructs
- Perform a test on a construct
Intended Audience
This course is intended for:
- Developers
Prerequisites
We recommend that attendees of this course have the following prerequisites:
- Familiar with the command line/terminal and basic navigation of the AWS Management Console
Course Outline
- Task 1: Configure AWS CDK credentials
- Task 2: Review the empty AWS CDK project in your working directory
- Task 3: Add the Lambda directory and hello.js file
- Task 4: Add a Lambda function to your stack
- Task 5: Bootstrap the environment in the terminal
- Task 6: Deploy the stack
- Task 7: Review stacks in the CloudFormation console
- Task 8: Test the Lambda function
- Task 9: Add the LambdaRestApi construct to your stack
- Task 10: View upcoming changes
- Task 11: Deploy the stack
- Task 12: Test your application
- Task 13: Create the HitCounter construct
- Task 14: Create HitCounter Lambda handler
- Task 15: Add resources to the hit counter construct
- Task 16: Add a hit counter to your stack
- Task 17: Grant permissions to allow Lambda to read and write to DynamoDB
- Task 18: Deploy updates to your stack and test
- Task 19: Testing constructs
- Task 20: Clean up resources