AWS Cloud Development Kit: Difference between revisions

Content deleted Content added
No edit summary
m sentence case
Line 21:
AWS CDK includes a library of constructs,<ref>{{Cite web |date=2022-03-10 |title=An Introduction To AWS Cloud Development Kit (CDK) |url=https://www.smashingmagazine.com/2022/03/introduction-aws-cloud-development-kit/ |access-date=2023-03-19 |website=Smashing Magazine |language=en}}</ref> which are pre-built components that encapsulate one or more AWS resources and their configurations<ref>{{Cite web |title=Working with Constructs |url=https://docs.aws.amazon.com/cdk/latest/guide/constructs.html |access-date=2023-03-19 |publisher=Amazon Web Services, Inc.}}</ref>. 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]]<ref>{{Cite web |title=AWS Construct Library |url=https://docs.aws.amazon.com/cdk/latest/guide/aws_construct_lib.html |access-date=2023-03-19 |publisher=Amazon Web Services, Inc.}}</ref>.
 
== Key Featuresfeatures ==
 
* '''Familiar programming languages''': AWS CDK supports TypeScript, JavaScript, Python, Java, and C#, allowing developers to use their preferred programming languages for defining cloud infrastructure.
Line 29:
* ''Modularity and extensibility''': AWS CDK promotes modularity and extensibility by allowing developers to create and share custom constructs and patterns.
 
== Release Historyhistory ==
 
* '''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.<ref>{{Cite web |date=2018-08-27 |title=AWS CDK Developer Preview {{!}} AWS Developer Tools Blog |url=https://aws.amazon.com/blogs/developer/aws-cdk-developer-preview/ |access-date=2023-03-19 |website=aws.amazon.com |language=en-US}}</ref>
Line 39:
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<ref>{{Cite web |title=AWS CDK Toolkit |url=https://docs.aws.amazon.com/cdk/latest/guide/tools.html |access-date=2023-03-19 |publisher=Amazon Web Services, Inc.}}</ref>. 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 Codecode ==
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 removalPolicy property specifies that the bucket should be destroyed when the stack is deleted.