Example Project from A First Look at CDK
AWS Cloud Development Kit (CDK) is a software development framework for defining cloud infrastructure in code and provisioning it through AWS CloudFormation. It supports TypeScript, JavaScript, Python, Java, C#/.Net, and (almost) Go.
Developers can use one of the supported programming languages to define reusable cloud components known as Constructs that are composed together into Stacks and Apps.
This is a project for JavaScript development with CDK. The cdk.json
file tells the CDK Toolkit how to execute your app. The build step is not required when using JavaScript.
git clone https://github.com/ajcwebdev/a-first-look.git
cd deployment/aws-cdk
Make sure you have the AWS CLI installed and an AWS account.
aws configure
Go to My Security Credentials to find your Access Key ID, Secret Access Key, and default region. You can leave the output format blank.
npm install -g aws-cdk
cdk synth
cdk deploy