Last updated on November 26, 2025
AWS Serverless Application Repository Cheat Sheet
- AWS Serverless Application Repository (SAR) is a managed repository for serverless applications. It enables teams, organizations, and individual developers to store and share reusable applications, and easily assemble and deploy serverless architectures in powerful new ways.
- It serves as a library of “pre-built” serverless patterns (defined in AWS SAM templates) that you can deploy directly to your account without cloning or manually building code.
- Each application includes an AWS SAM template that specifies the AWS resources that will be used.
Publishing Applications
- Use an AWS SAM template to define your application.
- To publish a serverless app, you can use the following to upload your code:
- AWS Management Console
- AWS SAM CLI
- AWS SDKs
-
When you publish an app, it is initially set to private and only accessible to the AWS account that created it.
- You can deploy and share your app by setting it to:
- Private
- Not shared with any other AWS accounts.
- Only accessible to the AWS account that created it.
- You have permission to deploy applications created with your AWS account.
- Privately Shared
- Shared with specific AWS accounts or an entire AWS Organization, this approach makes it easier to distribute internal tools across all accounts in your company.
- Accessible in the AWS Region in which they are created.
- You have permission to deploy applications shared with your AWS account.
- Publicly Shared
- Shared with everyone.
- Accessible to all AWS Regions.
- You have permission to deploy any publicly shared application.
- A link to the source code is included in publicly shared applications.
- Private
-
If the public app is deployed to another Region, AWS SAR copies the app deployment artifacts to an Amazon S3 bucket in the destination Region.
-
By sharing Lambda layers, you can deploy an instance of your layer to another AWS account.
Deploying Applications
- To deploy an application, you must have permission to do so (see permissions above).
- When deploying applications that create IAM roles or policies, you must explicitly acknowledge that the application creates these resources. If using the CLI/API, you must specify capabilities like
CAPABILITY_IAM,CAPABILITY_NAMED_IAM, orCAPABILITY_AUTO_EXPAND. - You can customize the application’s configuration during deployment by providing values for the template parameters defined by the publisher (e.g., setting a custom DynamoDB table name or API key).
- Before deploying an app, AWS SAR also checks the application template for:
-
-
IAM roles
-
AWS resource policies
-
Nested applications specified by the template
-
-
You can only search for and browse applications for which you have permission:
-
Created using your AWS account
-
Privately shared with your AWS account
-
Publicly shared
-
-
Use AWS Console or AWS CLI to deploy and update applications.
AWS Serverless Application Repository Monitoring
-
Create a trail in AWS CloudTrail to capture all API calls.
-
Even if you haven’t configured a trail, you can still view the most recent events in the CloudTrail console’s Event history.
AWS Serverless Application Repository Pricing
-
There is no additional charge to use the Serverless Application Repository itself. You only pay for the underlying AWS resources created when you deploy an application.
AWS Serverless Application Repository Cheat Sheet References:
https://aws.amazon.com/serverless/serverlessrepo/
https://docs.aws.amazon.com/serverlessrepo/latest/devguide/what-is-serverlessrepo.html












