aws-cloudformation - 来自 Cloudformation/serverless 的 AWS SES 模板

标签 aws-cloudformation amazon-ses serverless-framework

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

但是,我不断从 CloudFormation 获取 AWS::SES::Template 的“无法识别的类型”。

这绝对是defined CloudFormation resource type ,所以我不知道发生了什么。我见过描述 SES 模板的相同片段,据说可以工作,但对我来说却不起作用。有什么想法可能导致这种情况吗?

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

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

最佳答案

事实证明,这是由于 SES 在我使用的区域不可用。如果出现诸如“区域不支持的类型”之类的错误消息肯定会很好,但会引发通用的“无法识别的类型”。

关于aws-cloudformation - 来自 Cloudformation/serverless 的 AWS SES 模板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52900200/

相关文章:

amazon-web-services - 模板属性无效 [ElasticacheCluster]

amazon-web-services - AWS 云形成 : "The key pair ___ does not exist" error for newly-created EC2 key pair

node.js - "sls dynamodb start"抛出 spawn java ENOENT

amazon-web-services - "Invalid lambda function"尝试配置 SES 电子邮件接收规则时

node.js - 无法在 serverless.yml 中引用 CloudFormation 资源。变量 UserPoolId 的变量引用语法无效

amazon-web-services - 如何在无服务器框架中默认引用外部aws资源?

amazon-web-services - CloudFormation 堆栈错误 - GetObject 时发生错误。 S3错误代码: NoSuchKey

amazon-web-services - cfn-signal 在 ubuntu 堆栈超时中不起作用

c# - AWS SES 从版本 2 升级到版本 4?

node.js - Node.JS 是否有使用 Amazon SES(电子邮件服务)的维护库?