Skip to main content
  1. Projects/
  2. AWS DevOps Pro Certification/
  3. 2: Configuration Mgmt / Infrastructure as Code/
  4. 3: Containers and More/

3: AWS Cloud Development Kit

What’s the CDK?

  • Framework to define and provision cloud infra in code
  • Wrapper on top of CloudFormation
  • Use the aws constructs library

Why use CDK?

  • Much more concise than CloudFormation
  • Write in Python / TypeScript / Java(Script) / Go / etc.
  • Can fit in pipelines and automations like CF

How does CDK work?

  1. App
    • Root of construct tree (like a folder)
    • Consolidates all stacks in one app
  2. Stack
    • Single unit holding constructs
    • Can be used for development
  3. Construct
    • Building block containing one or more AWS resources
    • Reusable
Robert Boscacci
Robert Boscacci
Cinema technician who learned to code