事件目的地到 SNS 使用 AWS 云形成堆栈不起作用

问题描述

无法使用 AWS 云形成堆栈为 SNS 创建事件目标。

我的 yml 配置:

SendLog:
      Type: AWS::SES::ConfigurationSetEventDestination
      Properties:
        ConfigurationSetName: !Ref EmailConfig
        EventDestination:
          Name: "Send_Log"
          Enabled: true
          MatchingEventTypes:
            - "delivery"

错误

Serverless: Operation Failed!
Serverless: View the full error output: https://us-east-1.console.aws.amazon.com/cloudformation/home?region=us-east-1#/stack/detail?stackId=********

  Serverless Error ---------------------------------------

  An error occurred: SendLog - Event destination is not provided. (Service: AmazonSimpleEmailService; Status Code: 400; Error Code: InvalidParameterValue; Request ID: bb88f59d-392e-4d5f-af0a-35fcb25d7b82; Proxy: null).

解决方法

好的!找到了解决方案。

遗憾的是,AWS 尚不支持此功能。尽管他们的 User Guide 上有完整的文档 我发现它说得对there