Chrysolites Tech Academy

Video by freeCodeCamp.org · taught by Matt Martz · streamed from YouTube. All rights remain with the creator.

Lesson 3: The AWS Cloud Development Kit

About this lesson

This crash course by Matt Martz, an AWS Community Builder, introduces the AWS Cloud Development Kit, which lets you define cloud infrastructure in a familiar programming language instead of long template files. After an introduction and a list of useful resources, it explains the basics of the CDK: how an application is organised into stacks and how the code you write becomes AWS CloudFormation templates. It then explains constructs, the building blocks of every CDK application, and the different levels at which they work, from direct mappings of individual resources to higher-level components with sensible defaults. Next comes what happens behind the scenes when you run the CDK: synthesis of the template, the handling of assets such as function code, the one-time bootstrapping of an account and the deployment itself. The middle of the course is a speedrun of the official AWS CDK workshop. It prepares a Cloud9 development environment, creates a new project and deploys a first application, then writes a custom construct of your own, brings in a construct from a published library to add functionality with very little code, and tests the constructs to make sure they produce the infrastructure you expect. The final part covers more advanced topics and practices for using the CDK on real projects, followed by pointers to further resources. Some familiarity with AWS and with a language such as TypeScript or Python helps. Afterwards, read Chapter 3 of the course book.

Install Chrysolites Tech Academy

Android / Chrome / Edge: open the browser menu and choose Install app or Add to Home screen.

iPhone / iPad (Safari): tap the Share button, then Add to Home Screen.