AWS Cloud Development Kit

Short description: Open-source software development framework developed by Amazon Web Services

AWS Cloud Development KitDeveloper(s)| Amazon Web Services

|

Operating system| Cross-platform
Type| Cloud computing, Infrastructure as Code
License| Apache License 2.0
Website| aws.amazon.com/cdk/

The AWS Cloud Development Kit (AWS CDK) is an open-source[1] software development framework developed by Amazon Web Services (AWS) for defining and provisioning cloud infrastructure resources using familiar programming languages.[2] The AWS CDK aims to improve the experience of working with Infrastructure as Code by providing higher-level, reusable constructs that enable developers to create and manage AWS resources more efficiently and with less boilerplate code compared to traditional configuration files like AWS CloudFormation templates.[3]

## Contents

* 1 Overview
* 2 Key features
* 3 Release history
* 4 Launching CDK
* 5 Example code
* 6 See also
* 7 References
* 8 External links

## Overview

AWS CDK[4] allows developers to model and provision cloud infrastructure resources using programming languages such as TypeScript, JavaScript, Python, Java, and C#.[5][6] Developers can define their infrastructure using the same programming languages and tools they use for their application code, enabling better integration between application and infrastructure development processes.[7]

AWS CDK includes a library of constructs,[8] which are pre-built components that encapsulate one or more AWS resources and their configurations.[9] Constructs can be used to build higher-level abstractions known as patterns, which simplify common cloud infrastructure patterns and best practices. The AWS Construct Library provides a collection of constructs for various AWS services, such as Amazon S3, Amazon EC2, and AWS Lambda.[10]

## Key features

* Familiar programming languages: AWS CDK supports TypeScript, JavaScript, Python, Java, and C#, allowing developers to use their preferred programming languages for defining cloud infrastructure.
* Reusable constructs: AWS CDK includes a library of constructs that encapsulate AWS resources, their configurations, and best practices, promoting reusability and reducing boilerplate code.
* Higher-level abstractions: Developers can use constructs[11] to create custom, higher-level abstractions, known as patterns, to simplify complex infrastructure patterns and improve maintainability.
* Integration with AWS CloudFormation: AWS CDK applications are compiled into AWS CloudFormation templates, ensuring compatibility with existing AWS CloudFormation features and tools.[12]
* Modularity and extensibility: AWS CDK promotes modularity and extensibility by allowing developers to create and share custom constructs and patterns.

## Release history

* 2018: AWS CDK was announced as a developer preview at the AWS Summit in New York on July 17, 2018, offering an early version of the framework for developers to test and provide feedback.[13]
* 2019: AWS CDK reached general availability (GA) on July 11, 2019, with support for TypeScript and Python as the initial programming languages.[14]
* 2019: Support for Java and C# was added to AWS CDK on November 25, 2019, broadening the range of programming languages available for defining and provisioning cloud infrastructure resources.[15]
* 2021: AWS CDK v2 is released and consolidates the AWS Construct Library into a single package called aws-cdk-lib, streamlining usage and updates, ensuring stable APIs, and offering developer productivity improvements such as CDK Watch, a refreshed API Reference, and a new assertions library for automated unit testing in all CDK-supported languages.[16]

## Launching CDK

To get started with AWS CDK, developers need to install the AWS CDK Toolkit, which provides a command-line interface (CLI) for creating and managing AWS CDK projects.[17] The CLI can be installed using the Node.js package manager (npm) or any compatible package manager. Once the AWS CDK Toolkit is installed, developers can create a new AWS CDK project, define their infrastructure using constructs, and deploy the resulting AWS CloudFormation stack to their AWS account.

## Example code

The following is AWS CDK code written in TypeScript that creates an Amazon S3 bucket with public read access. This code imports the necessary AWS CDK libraries to create a new CloudFormation stack with a single Amazon S3 bucket resource. The Bucket constructor is used to create the bucket with the specified properties, including encryption, block public access, public read access, and versioning. The removal policy property specifies that the bucket should be destroyed when the stack is deleted.

import { Construct, Stack, StackProps } from 'aws-cdk-lib';
import { Bucket } from 'aws-cdk-lib/aws-s3';
import { BucketEncryption } from 'aws-cdk-lib/aws-s3';
import { BlockPublicAccess } from 'aws-cdk-lib/aws-s3';

export class MyStack extends Stack {
constructor(scope: Construct, id: string, props?: StackProps) {
super(scope, id, props);

const myBucket = new Bucket(this, 'MyBucket', {
encryption: BucketEncryption.S3_MANAGED,
blockPublicAccess: BlockPublicAccess.BLOCK_ALL,
publicReadAccess: true,
removalPolicy: RemovalPolicy.DESTROY,
versioned: true
});

## See also

* AWS CloudFormation
* Terraform
* Amazon Web Services
* Infrastructure as Code

## References

1. ↑ Kocher, Laveesh (2021-12-13). "AWS Announces The Release AWS Cloud Development kit" (in en-US). https://www.opensourceforu.com/2021/12/aws-announces-the-release-of-open-source-aws-cloud-development-kit/.
2. ↑ "AWS Cloud Development Kit (CDK)". Amazon Web Services, Inc.. https://aws.amazon.com/cdk/.
3. ↑ "AWS Cloud Development Kit (AWS CDK) User Guide". Amazon Web Services, Inc.. https://docs.aws.amazon.com/cdk/latest/guide/home.html.
4. ↑ Steenman, Danny (2022-07-23). "What is the AWS CDK? (A beginners guide)" (in en-US). https://towardsthecloud.com/aws-cdk.
5. ↑ "AWS Cloud Development Kit (CDK) FAQs". Amazon Web Services, Inc.. https://aws.amazon.com/cdk/faqs/.
6. ↑ Ramel, David. "AWS Adds .NET, Java Support in Cloud Development Kit". https://awsinsider.net/articles/2019/12/03/cdk-net-java.aspx.
7. ↑ "What's so Cool About AWS CDK?". https://www.beyondjava.net/cdk-primer.
8. ↑ "An Introduction To AWS Cloud Development Kit (CDK)" (in en). 2022-03-10. https://www.smashingmagazine.com/2022/03/introduction-aws-cloud-development-kit/.
9. ↑ "Working with Constructs". Amazon Web Services, Inc.. https://docs.aws.amazon.com/cdk/latest/guide/constructs.html.
10. ↑ "AWS Construct Library". Amazon Web Services, Inc.. https://docs.aws.amazon.com/cdk/latest/guide/aws_construct_lib.html.
11. ↑ Steenman, Danny (2022-05-03). "How to create an AWS CDK Construct" (in en-US). https://towardsthecloud.com/aws-cdk-construct.
12. ↑ "AWS Cloud Development Kit (CDK) FAQs". Amazon Web Services, Inc.. https://aws.amazon.com/cdk/faqs/.
13. ↑ "AWS CDK Developer Preview | AWS Developer Tools Blog" (in en-US). 2018-08-27. https://aws.amazon.com/blogs/developer/aws-cdk-developer-preview/.
14. ↑ Werner Vogels (2019-07-11). "AWS Cloud Development Kit (CDK) – TypeScript and Python are Now Generally Available". Amazon Web Services, Inc.. https://aws.amazon.com/blogs/aws/aws-cloud-development-kit-cdk-typescript-and-python-are-now-generally-available/.
15. ↑ "AWS Cloud Development Kit (CDK) – Java and .NET are Now Generally Available | AWS News Blog" (in en-US). 2019-11-25. https://aws.amazon.com/blogs/aws/aws-cloud-development-kit-cdk-java-and-net-are-now-generally-available/.
16. ↑ "AWS Cloud Development Kit (AWS CDK) v2 is now generally available" (in en-US). https://aws.amazon.com/about-aws/whats-new/2021/12/aws-cloud-development-kit-cdk-generally-available/.
17. ↑ "AWS CDK Toolkit". Amazon Web Services, Inc.. https://docs.aws.amazon.com/cdk/latest/guide/tools.html.

## External links

* on GitHub
* AWS CDK User Guide

* v
* t
* e

Cloud computing

As a service|

* Content as a service
* Data as a service
* Desktop as a service
* Function as a service
* Infrastructure as a service
* Mobile backend as a service
* Network as a service
* Platform as a service
* Security as a service
* Software as a service

Technologies|

* Cloud database
* Cloud storage
* Data centers
* Distributed file system for cloud
* Hardware virtualization
* Internet
* Native cloud application
* Networking
* Security
* Structured storage
* Virtual appliance
* Web APIs
* Virtual private cloud

Applications|

* Box
* Dropbox
* Google
* G Suite
* Docs, Sheets and Slides
* HP Cloud (closed)
* Microsoft Online
* Oracle Cloud
* Rackspace
* Salesforce
* Workday
* Zoho

Platforms|

* Alpha7
* Amazon Web Services
* AppScale
* Box
* Bluemix
* CloudBolt
* Cloud Foundry
* Cocaine (PaaS)
* Engine Yard
* Helion
* GE Predix
* Google App Engine
* GreenQloud
* Heroku
* Inktank
* Jelastic
* Mendix
* Microsoft Azure
* MindSphere
* Netlify
* Oracle Cloud
* OutSystems
* openQRM
* OpenShift
* PythonAnywhere
* RightScale
* Scalr
* Force.com
* SAP Cloud Platform
* VMware vCloud Air
* WaveMaker

Infrastructure|

* Amazon
* Abiquo Enterprise Edition
* CloudStack
* Citrix Cloud
* CtrlS
* DigitalOcean
* EMC Atmos
* Eucalyptus
* Fujitsu
* GoGrid
* Google Cloud Platform
* GreenButton
* GreenQloud
* IBM Cloud
* iland
* Joyent
* Lunacloud
* Mirantis
* Nimbula
* Nimbus
* OpenIO
* OpenNebula
* OpenStack
* Oracle Cloud
* OrionVM
* Rackspace Cloud
* Safe Swiss Cloud
* SoftLayer
* Zadara Storage
* libvirt
* libguestfs
* OVirt
* Virtual Machine Manager
* Wakame-vdc
* Virtual Private Cloud OnDemand

* Category
* Commons

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/AWS Cloud Development Kit. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Software:AWS_Cloud_Development_Kit&oldid=2685050"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template