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

CDK

The document outlines the files and structure of a CDK application project including the main stack file, entrypoint file, package.json, and cdk.json. It describes initializing a new CDK project, installing dependencies, synthesizing the template, previewing changes with diff, and deploying the stacks with cdk deploy. Key commands are listed like cdk --version, cdk init, cdk synth, cdk diff, and cdk deploy.

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)
895 views1 page

CDK

The document outlines the files and structure of a CDK application project including the main stack file, entrypoint file, package.json, and cdk.json. It describes initializing a new CDK project, installing dependencies, synthesizing the template, previewing changes with diff, and deploying the stacks with cdk deploy. Key commands are listed like cdk --version, cdk init, cdk synth, cdk diff, and cdk deploy.

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