来自 Cloudformation / 无服务器的 AWS SES 模板

AWS SES template from Cloudformation / serverless

我正在使用 serverless framework 来部署我的 AWS 堆栈,并且我正在尝试将 AWS SES 模板添加到我的资源中。

但是,对于 AWS::SES::Template.

,我一直从 CloudFormation 收到“无法识别的类型”

这绝对是一个defined CloudFormation resource type,所以我不知道这是怎么回事。我见过描述 SES 模板的相同片段,这些片段应该有效,但对我来说却无效。任何想法可能是什么原因造成的?

我的 serverless.yml 中的部分如下所示:

resources:
  Resources:
    EmailNotificationTemplate:
      Type: AWS::SES::Template 
      Properties: 
        Template: 
          TemplateName: "test" 
          TextPart: "body text" 
          SubjectPart: "subject"

原来这是因为 SES 在我使用的地区不可用。如果出现 "type not supported in region" 之类的错误消息肯定会很好,但会引发通用的 "unrecognized type"。