(6) intro (7) CDK (8) CloudFormation (9) install CDK (10) base project deployment (11) project exploration (12) CDK types and commands (13) CDK Outputs (cf terraform output) (14) CDK Deployment Parameters (15) CDK core - recap


(6) intro


(7) CDK abstraction of aws resources reusable components

use AWS CDK to:

  1. create and deploy AWS resources
  2. configure those resources
  3. link together resources into constructs

uses JSII (javascript interop interface)


(8) CloudFormation


(9) install CDK

npm i -g aws-cdk

or

brew install aws-cdk

(10) base project deployment


(11) project exploration bin/first-cdk.ts ./resources/aws-typescript-masterclass-2.-cdk-cloudformation.resources/unknown_filename.png

lib/first-cdk-stack.ts ./resources/aws-typescript-masterclass-2.-cdk-cloudformation.resources/unknown_filename.4.png


(12) CDK types and commands CDK commands

Add constructs to the stack bin/first-cdk.ts ./resources/aws-typescript-masterclass-2.-cdk-cloudformation.resources/unknown_filename.png lib/first-cdk-stack.ts ./resources/aws-typescript-masterclass-2.-cdk-cloudformation.resources/unknown_filename.1.png (13) CDK Outputs (cf terraform output) ./resources/aws-typescript-masterclass-2.-cdk-cloudformation.resources/unknown_filename.2.png

(14) CDK Deployment Parameters

cdk deploy --parameters duration=9

./resources/aws-typescript-masterclass-2.-cdk-cloudformation.resources/unknown_filename.3.png


(15) CDK core - recap https://docs.aws.amazon.com/cdk/api/v2/docs/aws-construct-library.html