serverless-application-model VS aws-cdk

Compare serverless-application-model vs aws-cdk and see what are their differences.

serverless-application-model

The AWS Serverless Application Model (AWS SAM) transform is a AWS CloudFormation macro that transforms SAM templates into CloudFormation templates. (by aws)

aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code (by aws)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
serverless-application-model aws-cdk
98 263
9,231 11,137
0.3% 1.2%
8.9 9.9
10 days ago about 15 hours ago
Python TypeScript
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

serverless-application-model

Posts with mentions or reviews of serverless-application-model. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-25.
  • Simple and Cost-Effective Testing Using Functions
    5 projects | dev.to | 25 Mar 2024
    The complete solution with SAM is available here.
  • Deploying a Serverless Dash App with AWS SAM and Lambda
    3 projects | dev.to | 4 Mar 2024
    There are many options to deploy Serverless Applications in AWS and one of them is SAM, the Serverless Application Model. I chose to use it here, because it doesn't add too many layers of abstraction between what's being deployed and the code we write and our infrastructure is quite simple.
  • Serverless Apache Zeppelin on AWS
    3 projects | dev.to | 4 Feb 2024
    The solution uses AWS SAM with the global configuration for Lambda functions and the public API you can use to access Apache Zeppelin. The stack deployment provides the URL as an output value.
  • Using design patterns in AWS Lambda
    1 project | dev.to | 15 Jan 2024
    When you combine this with the AWS Serverless Application Model you can also very easily include your dependencies. Or use a compiled language like golang for your Lambda functions. You simply run sam build before you run the aws cloudformation package and aws cloudformation deploy commands. SAM will build the binary and update the template to point to the newly built binary. Package will then upload it to S3 and replace the local reference to the S3 location. Deploy can then create or update the stack or you can use the CloudFormation integration in CodePipeline.
  • Serverless Site Health Check Notification System
    4 projects | dev.to | 22 Dec 2023
    I'm a big fan of using an Infrastructure as Code (IaC) approach for any project. My go to tools for this are the Servlerless Application Model (SAM) and it's associated CLI (SAM CLI). For more official use cases and for cross platform apps I typically use Terraform.
  • Starting My AWS Certification Journey as a Certified Cloud Practitioner
    6 projects | dev.to | 10 Dec 2023
    AWS SAM
  • API Gateway, Lambda, DynamoDB and Rust
    5 projects | dev.to | 5 Dec 2023
    Kicking off the tour and not starting a war, but I'm going to be using the Serverless Application Model.
  • Consuming an SQS Event with Lambda and Rust
    7 projects | dev.to | 3 Nov 2023
    The diagram here is super simple. I'm going to write something a little later that shows how this code could fit into a bigger workflow, but for now, I'm keeping it basic. And yes, that's the SAM Squirrel in there.
  • AWS Data Engineer Associate Certification - Coming Soon
    2 projects | dev.to | 27 Sep 2023
    Interestingly, AWS CDK and SAM are both explicitly mentioned. While CDK broadly addresses Infrastructure as Code, SAM is highlighted for its role in developing serverless data pipelines - a hugely underrated concept.
  • A Beginner's Guide to the Serverless Application Model (SAM)
    7 projects | dev.to | 16 Aug 2023
    Naturally, there are several options available to declare your cloud resources. The options with the most popularity are the CDK, AWS CloudFormation, SST, Serverless framework, Terraform, and AWS SAM. There are others, but when talking about Infrastructure as Code (IaC), these are the ones you hear about most often.

aws-cdk

Posts with mentions or reviews of aws-cdk. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-02.
  • Deploy Laravel API To AWS Lambda
    1 project | dev.to | 10 Apr 2024
    environment: Specifies the environment variable that will be available to our Lambda function. In this case I wrote an environment for RDS Database. Anyway, later I will write about AWS CDK using Python for creating database clusters, etc.
  • Building an Amazon Location Service Resources with AWS CDK and AWS CloudFormation
    5 projects | dev.to | 2 Apr 2024
    Today, I will show you how to build Amazon Location Service, which allows you to build location-based applications within your AWS environment using AWS Cloud Development Kit (AWS CDK) and AWS CloudFormation. I will also show examples of the recently popular CDK Migrate and AWS CloudFormation IaC generator.
  • DevSecOps with AWS- IaC at scale - Building your own platform - Part 1
    8 projects | dev.to | 21 Mar 2024
    AWS Cloud Development Kit (CDK): is an open-source software development framework to define your cloud application resources using familiar programming languages.
  • Cloud, why so difficult? 🤷‍♀️
    3 projects | dev.to | 24 Jan 2024
    I am not one to build programming languages on a whim. In fact, I've spent the last five years building the AWS CDK, which is a multi-language library that addresses some of the challenges I am talking about by allowing developers to define cloud infrastructure using their favorite programming language.
  • Create a Next.js Server Component S3 Picture Uploader with SST
    5 projects | dev.to | 4 Jan 2024
    I recently started exploring SST as an alternative to my favorite full-stack set consisting of Projen, AWS CDK, and React. I have been thoroughly impressed with the experience so far. In this article, I will demonstrate how to create a Next.js App Router S3 Picture Uploader using SST.
  • Starting My AWS Certification Journey as a Certified Cloud Practitioner
    6 projects | dev.to | 10 Dec 2023
    AWS CDK
  • Cloud Garbage 🗑️
    1 project | dev.to | 2 Dec 2023
    For KMS 🔑, Each key is ~$1/mo, and with CDK, keys are generated on a massive scale, if not centralized.
  • Building Serverless Applications On AWS: A Practical Guide To Managing Event Processing
    2 projects | dev.to | 21 Nov 2023
    Here is a github repository containing the code and instructions on how to automate this whole setup using AWS CDK.
  • How to Implement and Deploy a Smart Contract Event Listener with AWS CDK
    5 projects | dev.to | 19 Nov 2023
    Now that you have a working smart contract event listener, we'll deploy the resources to AWS using AWS CDK, which is an Infrastructure as Code (IaC) tool. AWS CDK allows you to configure, deploy, and manage AWS cloud resources using popular programming languages such as TypeScript.
  • Serverless Scheduled Reporting Service with AWS EventBridge, Lambda, SNS, and CDK
    1 project | dev.to | 9 Nov 2023
    ✨ Synthesis time: 14.44s CdkScheduledReportingStack: start: Building f3a91fb0ff1605e49b4b00aa223098d7a9a5307e98027f77aecc36bc05a4c3e7:current_account-current_region CdkScheduledReportingStack: success: Built f3a91fb0ff1605e49b4b00aa223098d7a9a5307e98027f77aecc36bc05a4c3e7:current_account-current_region CdkScheduledReportingStack: start: Publishing f3a91fb0ff1605e49b4b00aa223098d7a9a5307e98027f77aecc36bc05a4c3e7:current_account-current_region CdkScheduledReportingStack: start: Building 517f907ce2318aa1a929b43bc1a0247ed509c92576c23a0a8aadfe1677f2ebd7:current_account-current_region CdkScheduledReportingStack: success: Built 517f907ce2318aa1a929b43bc1a0247ed509c92576c23a0a8aadfe1677f2ebd7:current_account-current_region CdkScheduledReportingStack: start: Publishing 517f907ce2318aa1a929b43bc1a0247ed509c92576c23a0a8aadfe1677f2ebd7:current_account-current_region CdkScheduledReportingStack: success: Published 517f907ce2318aa1a929b43bc1a0247ed509c92576c23a0a8aadfe1677f2ebd7:current_account-current_region CdkScheduledReportingStack: success: Published f3a91fb0ff1605e49b4b00aa223098d7a9a5307e98027f77aecc36bc05a4c3e7:current_account-current_region This deployment will make potentially sensitive changes according to your current security approval level (--require-approval broadening). Please confirm you intend to make the following modifications: IAM Statement Changes ┌───┬────────────────────────────────────────┬────────┬───────────────────────┬────────────────────────────────────────┬───────────────────────────────────────────────┐ │ │ Resource │ Effect │ Action │ Principal │ Condition │ ├───┼────────────────────────────────────────┼────────┼───────────────────────┼────────────────────────────────────────┼───────────────────────────────────────────────┤ │ + │ ${SalesReportFunction.Arn} │ Allow │ lambda:InvokeFunction │ Service:events.amazonaws.com │ "ArnLike": { │ │ │ │ │ │ │ "AWS:SourceArn": "${Rule.Arn}" │ │ │ │ │ │ │ } │ ├───┼────────────────────────────────────────┼────────┼───────────────────────┼────────────────────────────────────────┼───────────────────────────────────────────────┤ │ + │ ${SalesReportFunction/ServiceRole.Arn} │ Allow │ sts:AssumeRole │ Service:lambda.amazonaws.com │ │ ├───┼────────────────────────────────────────┼────────┼───────────────────────┼────────────────────────────────────────┼───────────────────────────────────────────────┤ │ + │ ${SalesReportTopic} │ Allow │ sns:Publish │ AWS:${SalesReportFunction/ServiceRole} │ │ └───┴────────────────────────────────────────┴────────┴───────────────────────┴────────────────────────────────────────┴───────────────────────────────────────────────┘ IAM Policy Changes ┌───┬────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────┐ │ │ Resource │ Managed Policy ARN │ ├───┼────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────┤ │ + │ ${SalesReportFunction/ServiceRole} │ arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole │ └───┴────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────┘ (NOTE: There may be security-related changes not in this list. See https://github.com/aws/aws-cdk/issues/1299) Do you wish to deploy these changes (y/n)?

What are some alternatives?

When comparing serverless-application-model and aws-cdk you can also consider the following projects:

aws-elastic-beanstalk-cli - The EB CLI is a command line interface for Elastic Beanstalk that provides interactive commands that simplify creating, updating and monitoring environments from a local repository.

sst - Build modern full-stack applications on AWS

LocalStack - 💻 A fully functional local AWS cloud stack. Develop and test your cloud & Serverless apps offline

aws-cdk-local - Thin wrapper script for using the AWS CDK CLI with LocalStack

Moto - A library that allows you to easily mock out tests based on AWS infrastructure.

middy - 🛵 The stylish Node.js middleware engine for AWS Lambda 🛵

sst-start-demo - A simple SST app to demo the new `sst start` command

ts-node - TypeScript execution and REPL for node.js

openvscode-server - Run upstream VS Code on a remote machine with access through a modern web browser from any device, anywhere.

diy-sveltekit-cdk-adapter - An exercise on deploying SvelteKit with CDK

aws-sam-cli - CLI tool to build, test, debug, and deploy Serverless applications using AWS SAM

SvelteKit - web development, streamlined