Skip to content

Latest commit

 

History

History

aws-cdk

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

01-constructs

Clone Repo and Navigate to Project

git clone https://github.com/ajcwebdev/a-first-look.git
cd deployment/aws-cdk

Setup

Configure AWS CLI with aws configure

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.

Install aws-cdk

npm install -g aws-cdk

Deploy to AWS

Generate CloudFormation template with cdk synth

cdk synth

Deploy the stack with cdk deploy

cdk deploy