0% found this document useful (0 votes)
44 views1 page

CDK

The document discusses the files and structure of an AWS CDK TypeScript project including lib/cdk-workshop-stack.ts, bin/cdk-workshop.ts, package.json, cdk.json. It also covers the commands cdk init, cdk synth, cdk diff, cdk deploy and installing CDK construct libraries like @aws-cdk/aws-lambda.

Uploaded by

Joel White
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views1 page

CDK

The document discusses the files and structure of an AWS CDK TypeScript project including lib/cdk-workshop-stack.ts, bin/cdk-workshop.ts, package.json, cdk.json. It also covers the commands cdk init, cdk synth, cdk diff, cdk deploy and installing CDK construct libraries like @aws-cdk/aws-lambda.

Uploaded by

Joel White
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

lib/cdk-workshop-stack.

ts --> CDK application main stack


bin/cdk-workshop.ts --> entrypoint of the CDK application, it will load the stack
defined in lib/cdk-workshop-stack.ts
package.json --> includes information like the name of your app, version,
dependencies and build scripts like “watch” and “build”
cdk.json -->

Steps--
cdk init --> Synth --> Bootstrap (one time) --> Deploy

Commands
$ cdk --version
1.115.0 (build f0ca40f)
$ npm install -g aws-cdk --force

cdk init --list (lists available templates)


cdk init --> to create a new AWS CDK TypeScript project.
cdk init sample-app --language typescript

cdk synth --> they produce (or “synthesize”, in CDK parlance) an AWS
CloudFormation template for each stack defined in your application.
cdk diff
cdk deploy

npm install @aws-cdk/aws-lambda -> install lambda construct library

You might also like