Reddit aws sam vs cdk. Apr 29, 2021 路 With AWS SAM CLI native support for AWS CDK, developers have more options when choosing their preferred framework. Not sure what you mean by cdk being more verbose? More verbose than serverless framework? If yes then I think you will like SST. We would like to show you a description here but the site won’t allow us. Is the above statement correct ? I am personally now looking to start using SST - which effectively is CDK plus live lambda development plus bit of additional abstractions on top of cdk to make things even easier. But we would like to use terraform exclusively . Jul 8, 2025 路 Here's a side-by-side comparison of how to create a simple AWS Lambda function that prints "Hello World" using AWS SAM and AWS CDK. CDK Oct 15, 2024 路 AWS CDK (Cloud Development Kit) and AWS SAM (Serverless Application Model) are two powerful frameworks for building serverless applications, but they serve slightly different purposes and have . One of the reasons we prefer terraform because, unlike SAM, terraform does not need a local agent running on the on the on prem machine. If you are building a product that will live in your own system and accounts, used CDK, if you are building software that will be deployed to other peoples accounts, SAM is a better option. CDK is the next gen Infrastructure as a service tool, it allows you to use a real programming language to create your infrastructure. Would like to know which IaC tool 馃敡 is better. Compare features, use cases, and decide your best fit Connect with builders who understand your journey. Sam is an extension of cloudformation and and a cli helper to speed the creation of serverless apps. I understand that CDK allows setup with code rather than YAML or JSON files, but beyond that, I’m unclear about the advantages. In this post, I show how to use the AWS SAM CLI to test locally and develop serverless applications seamlessly within an AWS CDK project. Explore AWS SAM and CDK to find your ideal serverless IaC tool in 2025. Your community starts here. Terraform vs AWS SAM Due to various reasons , we have AWS SAM modules to create a lambda set up. Oct 15, 2024 路 AWS CDK (Cloud Development Kit) and AWS SAM (Serverless Application Model) are two powerful frameworks for building serverless applications, but they serve slightly different purposes and I’ve been researching and found that AWS CDK (Cloud Development Kit) or Terraform might be better solutions, but I’m not entirely sure why. Sam is an extension of cloudformation and and a cli helper to speed the creation of serverless apps Amplify is a cli, framework and cloud service that allows you to create a project for web or app fast without you knowing a lot about the cloud. Share solutions, influence AWS product development, and access useful content that accelerates your growth. I'm new to AWS with a few months experience working with AWS CDK and SAM. dhvjlx vzpg jwtppek cjiwc rmzld