- Newest
- Most votes
- Most comments
Hi Sam! I'd recommend starting with SAM to build the app locally first. Once you get a hang of SAM dev cycle, you can explore the CICD pipelines.
Take a look at this blog post [1] and these docs. [2]
[1] https://aws.amazon.com/blogs/compute/introducing-aws-sam-pipelines-automatically-generate-deployment-pipelines-for-serverless-applications/ [2] https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-generating-example-ci-cd.html
Hi Sam
The main benefit of SAM for me is the ability to locally spin up an api gateway, invoke a lambda function and mock test locally with synthetic events. CDK, Terraform and others are also great options. All of these will work fine with different CICD tooling.
Thanks again luchobot, The ability to test things locally is indeed interesting. But the priority for me is finding something with the shortest learning time and which gives me the highest level of abstraction that shields me as much as possible from things related to Dev Ops. Do you know how using SAM as described in the link you sent compares to using code catalyst blue prints?
Relevant content
- asked 2 months ago
- Accepted Answerasked a year ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 6 months ago
Thank you lunchobot, SAM does look interesting but I would like to understand why it is a better choice than using one of the alternatives, say, CDK? Because CDK lets you define your resources using a programming language of your choice. Which sounds more appealing to me as a developer. And then the promise of Code Catalyst is it lets you work at a higher level of abstractions and use 'blueprints' to generate entire pipelines without any manual configurations. Using SAM to build the app locally involves creating some sort of local versions of dynamoDB etc? Is it really worth all the trouble?
Hi @sam SAM and CDK are different things and you can use both. CDK helps on the infrastructure as code, SAM helps to deploy, test and debug it. By default SAM use cloudformation, but it's possible to use also CDK. https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-cdk-getting-started.html