Chapter 3. Introducing CDK and AWS Constructs
In this chapter, you will continue building your “Hello, World!” application by adding object storage and an event notification to trigger your “Hello, CDK” function. This will constitute a basic event-driven architecture, allowing you to upload a document and trigger an event. You will build the components of this project in three different ways so that you can learn about Level 1, 2, and 3 (L1, L2, and L3) CDK constructs. At the end of this project, you will have established the first event-driven process for your Home Energy Coach application.
Through this project, you will learn:
-
How to deploy AWS resources using L1, L2, and L3 constructs
-
How to connect multiple CDK constructs into an event-driven architecture
To get started, you will need:
Project Architecture: Greeting S3 Bucket
This is how it all gets started. In this project segment, we are going to set up the most basic building block of CDK that will take data from S3 and print a message. While Figure 3-1 is simple, we will build from here over the coming chapters.
Figure 3-1. The starting place for the “Hello, CDK” application
These are the three steps we’ll follow:
-
S3 bucket to upload raw data
-
Event notification to trigger Lambda function
-
Lambda function to print “Hello, CDK”
Note that you will construct this architecture and revise it ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access