Amazon SAM 搭配使用 Amazon Serverless Application Repository - Amazon Serverless Application Repository
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

Amazon SAM 搭配使用 Amazon Serverless Application Repository

Amazon Serverless Application Model (Amazon SAM) 是一个开源框架,可用于在其上 Amazon构建无服务器应用程序。有关使用构建无服务器应用程序 Amazon SAM 的更多信息,请参阅《Amazon Serverless Application Model 开发人员指南》

在构建将发布到的应用程序时 Amazon Serverless Application Repository,必须考虑一组可用的受支持 Amazon 资源和策略模板。以下各节将更详细地介绍这些主题。

中支持的 Amazon 资源 Amazon Serverless Application Repository

Amazon Serverless Application Repository 支持由许多 Amazon SAM Amazon CloudFormation 资源组成的无服务器应用程序。要查看支持的 Amazon 资源的完整列表 Amazon Serverless Application Repository,请参阅支持的 Amazon 资源清单

如果您想请求支持以获取其他 Amazon 资源,请联系 Suppor Amazon t

重要

如果您的应用程序模板包含以下任一自定义 IAM 角色或资源策略,则默认情况下,您的应用程序不会显示在搜索结果中。另外,客户需要确认应用程序的自定义 IAM 角色或资源策略,然后才能部署应用程序。有关更多信息,请参阅确认应用程序功能

这适用于的资源列表是:

如果您的应用程序包含AWS::Serverless::Application资源,则客户需要先确认该应用程序包含嵌套应用程序,然后才能部署该应用程序。有关嵌套应用程序的更多信息,请参阅《Amazon Serverless Application Model 开发人员指南》中的嵌套应用程序。有关确认功能的更多信息,请参阅确认应用程序功能

策略模板

Amazon SAM 为您提供了策略模板列表,用于将 Lambda 函数的权限范围限定为应用程序所使用的资源。使用策略模板不需要额外的客户确认,即可搜索、浏览或部署应用程序。

有关标准 Amazon SAM 策略模板的列表,请参阅《Amazon Serverless Application Model 开发人员指南》中的Amazon SAM 策略模板