The AWS Cloud Development Kit (AWS CDK) is an infrastructure modeling framework that allows you to define your cloud resources using an imperative programming interface. The CDK is currently in developer preview. We look forward to community feedback and collaboration.
Developers can use one of the supported programming languages to define reusable cloud components called constructs, which are composed together to form Apps. Apps are synthesized to AWS CloudFormation Templates and deployed to the AWS Cloud using the CDK Command Line Toolkit.
The CDK is shipped with a rich library of constructs called the AWS Construct Library, which includes constructs for all AWS services.
You will end up writing code that looks like this:
const queue = new sqs.Queue(this, 'MyQueue', {
visibilityTimeoutSec: 300
});
const topic = new sns.Topic(this, 'MyTopic');
topic.subscribeQueue(queue);
The following screencast shows the experience of installing and working with the CDK:
Make sure you have Node.js LTS (8.11.x) installed.
Install the toolkit, create a demo project in the current directory, and deploy it:
npm install -g aws-cdk
cdk init app --language=typescript # or java
npm run build
cdk deploy
If you prefer to have full control over the installation and version of the CDK, the complete distribution is also available as a single signed zip file.
See MANUAL_INSTALLATION.md
for more information
To view CDK documentation bundled with the release, run:
cdk docs
Or view the online documentation.
See CONTRIBUTING.
Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
See LICENSE file for license terms.