- Author a serverless application with an AWS SAM template.
- Package your code and artifacts, upload them to S3, and produce a packaged template.
- Publish the packaged application to the Serverless Application Repository.
- Other users discover, configure, and deploy the application into their own AWS accounts.

Technical flow (expanded)
- Create
- Author your serverless application and declare resources using a SAM template (for example, AWS Lambda functions, Amazon API Gateway endpoints, and Amazon DynamoDB tables).
- Package
- Upload artifacts (code, dependencies, layers) to Amazon S3 and produce a packaged SAM template that references those S3 object locations.
- Publish
- Submit the packaged template to the Serverless Application Repository (via the AWS Console or AWS CLI).
- Discover & Deploy
- Other users find the application in SAR, provide any required configuration parameters, and deploy it. SAR creates an AWS CloudFormation change set in the deployer’s account which provisions all declared resources.
Example packaging and publishing commands (CLI)
Use the AWS SAM CLI to package artifacts and generate a packaged template:- You can publish and manage SAR applications via the AWS Management Console.
- Use
aws serverlessrepo create-application-versionto add subsequent versions after the initial publish.
What happens when a user deploys an application from SAR
- The deployer supplies any template parameters exposed by the application (for example, environment variables, resource names, or instance sizes).
- SAR creates a CloudFormation change set in the deployer’s AWS account from the SAM template.
- CloudFormation provisions all declared resources — Lambda functions, API Gateway endpoints, IAM roles, DynamoDB tables, etc.
- The deployed resources operate inside the deployer’s account and are governed by that account’s IAM policies, service quotas, and billing.
When someone deploys an application from the Serverless Application Repository, CloudFormation provisions resources into the deployer’s account. Ensure deployers have the required IAM permissions and adhere to least-privilege practices before deploying third-party or shared applications.
If you publish an application publicly, other AWS accounts can deploy it. Review code, IAM roles, and resource configurations carefully to avoid exposing sensitive data or granting excessive permissions.
Features and benefits
Quick reference: common SAR concepts
Summary
AWS Serverless Application Repository (SAR) provides a straightforward path to package, publish, and share serverless applications built with SAM. It simplifies reuse, enforces consistent deployment through CloudFormation, and supports versioned distribution for both private organizational sharing and public community publishing. When using SAR, always verify IAM permissions, resource configurations, and the provenance of third-party code before deployment.Links and references
- Serverless Application Repository (AWS Docs)
- AWS SAM — Serverless Application Model
- AWS SAM CLI
- AWS CLI Documentation
- AWS CloudFormation
- AWS IAM
- Amazon S3