
We will review how to set up a project on AWS for both frameworks. CDK will synthesize the source code to create the appropriate AWS CloudFormation template. Your source code defines both the resources and the files those resources need (e.g., AWS Lambda function source code). What is Amazon Web Services (AWS) Cloud Development Kit (CDK)?ĬDK allows you to deploy resources in AWS using TypeScript, JavaScript, Python, Java, and.

Serverless will deserialize the "serverless.yml" and convert it to the cloud provider's underlying format (e.g., AWS CloudFormation template). The "serverless.yml" file will enable you to specify your configuration using YAML syntax and put your function source code like JavaScript, Python, Go, and any other language the cloud provider supports. The Serverless configuration file (named "serverless.yml") uses a similar format for most providers, which allows you to switch mental context between providers reasonably easily.

Serverless supports the following providers: Serverless allows you to deploy serverless applications to multiple cloud providers. Overview of the frameworksīoth AWS CDK (which we will refer to as "CDK") and the Serverless Framework (which we will refer to as "Serverless") are both JavaScript frameworks that you may install as a Command Line Interface (CLI) script via npm or yarn. This post will compare Serverless Framework and AWS CDK in different areas: framework ease of use, extensibility, and security.

AWS CDK helps you achieve infrastructure as code similar to AWS CloudFormation and Terraform. AWS CDK is a framework to deploy serverless applications and any AWS resource. In July 2019, AWS announced its own framework Cloud Development Kit. The Serverless Framework is the most popular framework for building serverless applications on Amazon Web Services (AWS) and other cloud providers.
