The AWS Serverless Application Model (SAM) is an open-source framework for building serverless applications.It provides shorthand syntax to express functions, APIs, databases, and event source mappings.With just a few lines of configuration, you can define the application you want and model it.
To get started with building SAM-based applications, use the SAM CLI. SAM CLI provides a Lambda-like executionenvironment that lets you locally build, test, debug, and deploy applications defined by SAM templates.
Next Steps: Learn to build a more complex serverless application.
Detailed References: Explains SAM commands and usage in depth.
Single-deployment configuration. SAM makes it easy to organize related components and resources, and operate on a single stack. You can use SAM to share configuration (such as memory and timeouts) between resources, and deploy all related resources together as a single, versioned entity.
Local debugging and testing. Use SAM CLI to locally build, test, and debug SAM applications on a Lambda-like execution environment. It tightens the development loop by helping you find & troubleshoot issues locally that you might otherwise identify only after deploying to the cloud.
Deep integration with development tools. You can use SAM with a suite of tools you love and use.
Built-in best practices. You can use SAM to define and deploy your infrastructure as configuration. This makes it possible for you to use and enforce best practices through code reviews. Also, with a few lines of configuration, you can enable safe deployments through CodeDeploy, and can enable tracing using AWS X-Ray.
Extension of AWS CloudFormation. Because SAM is an extension of AWS CloudFormation, you get the reliable deployment capabilities of AWS CloudFormation. You can define resources by using CloudFormation in your SAM template. Also, you can use the full suite of resources, intrinsic functions, and other template features that are available in CloudFormation.
This GitHub repository contains the SAM Specification, the Python code that translates SAM templates into AWS CloudFormation stacks and lots of example applications.In the words of SAM developers:
SAM Translator is the Python code that deploys SAM templates via AWS CloudFormation. Source code is high quality (95% unit test coverage),with tons of tests to ensure your changes don't break compatibility. Change the code, run the tests, and if they pass, you should be good to go!Clone it and run
make pr
!
We love our contributors
Depending on your interest and skill, you can help build the different parts of the SAM project;
Enhance the SAM Specification
Make pull requests, report bugs, and share ideas to improve the full SAM template specification.Source code is located on GitHub at awslabs/serverless-application-model.Read the SAM Specification Contributing Guideto get started.
Strengthen SAM CLI
Add new commands or enhance existing ones, report bugs, or request new features for the SAM CLI.Source code is located on GitHub at awslabs/aws-sam-cli. Read the SAM CLI Contributing Guide toget started.
Update SAM Developer Guide
SAM Developer Guide provides comprehensive getting started guide and reference documentation.Source code is located on GitHub at awsdocs/aws-sam-developer-guide.Read the SAM Documentation Contribution Guide to getstarted.
Join the SAM developers channel (#samdev) on Slack to collaborate with fellow community members and the AWS SAM team.
Serverless applications take advantage of modern cloud computing capabilities and abstractions to let you focus on logic rather than on infrastructure. In a serverless environment, you can concentrate
云原生应用开发 回顾过去二十年,应用开发有以下几个显著的特点: 以应用服务器为中心,典型应用服务器包括 tomcat,JBoss,WebLogic,WebSphere,应用服务器提供了丰富的技术堆栈和系统构建范式,对应用开发人员友好 JavaEE/Spring,JavaEE/Spring 是应用开发的基本技能,这项技能有广泛的开发者基础,过去二十年中 JavaEE/Spring 的技术发展/版本的
The Serverless Framework (无服务器架构)允许你自动扩展、按执行付费、将事件驱动的功能部署到任何云。 目前支持 AWS Lambda、Apache OpenWhisk、Microsoft Azure,并且正在扩展以支持其他云提供商。 Serverless 降低了维护应用程序的总成本,能够更快地构建更多逻辑。它是一个命令行工具,提供脚手架、工作流自动化和开发部署无服务器架构的最佳实践。它也可以通过插件完全扩展。
Serverless Prisma [Archived] — New projects should consider using Prisma2 Minimal Serverless + Prisma Project Template Getting Started Be sure to have Docker and Make installed on your machine. Docker
Serverless Webpack A Serverless v1.x & v2.x plugin to build your lambda functions with Webpack. This plugin is for you if you want to use the latest Javascript version with Babel;use custom resource l
serverless-bundle serverless-bundle is a Serverless Framework plugin that optimally packages your ES6 or TypeScript Node.js Lambda functions with sensible defaults so you don't have to maintain your o
Serverless Express by Vendia Run REST APIs and other web applications using your existing Node.js application framework (Express, Koa, Hapi, Sails, etc.), on top of AWS Lambda and Amazon API Gateway.