Back to results for “Applications”
AWS › AWS Serverless Application Model (SAM)

How does SAM support nested applications and reusable components through the AWS Serverless Application Repository?

Advanced

Answer

SAM applications can be published to the AWS Serverless Application Repository, allowing other teams or even the broader public to easily discover and deploy pre built serverless applications or components as nested applications within their own SAM templates, promoting reuse of common serverless patterns, such as a standard image resizing function, without needing to rebuild the same commonly needed functionality from scratch every time.
Resources:
  ImageResizer:
    Type: AWS::Serverless::Application
    Properties:
      Location:
        ApplicationId: arn:aws:serverlessrepo:us-east-1:123456789012:applications/image-resizer
        SemanticVersion: 1.0.0
Real-world example A company building a new application reuses a well tested image resizing function published to the Serverless Application Repository by referencing it as a nested application within their own SAM template, avoiding the need to write and maintain that functionality themselves.

Common follow-ups: How do you publish your own SAM application to the Serverless Application Repository?;What are the security considerations when using a third party published application from the repository?