1

快速提问。我计划通过将 SNS 主题作为源传递给 EventBridge,而不是将其通过 Lambda,然后从 EventBridge 传递给 Firehose,从而最大限度地减少资源的使用。我试过了,但它不工作。是否有可能,或者 Lambda 是使其成为来源的唯一方法?

4

1 回答 1

2

这是不可能的。SNS 主题的唯一有效订阅

    For the http protocol, the (public) endpoint is a URL beginning with http://.

    For the https protocol, the (public) endpoint is a URL beginning with https://.

    For the email protocol, the endpoint is an email address.

    For the email-json protocol, the endpoint is an email address.

    For the sms protocol, the endpoint is a phone number of an SMS-enabled device.

    For the sqs protocol, the endpoint is the ARN of an Amazon SQS queue.

    For the application protocol, the endpoint is the EndpointArn of a mobile app and device.

    For the lambda protocol, the endpoint is the ARN of an AWS Lambda function.

    For the firehose protocol, the endpoint is the ARN of an Amazon Kinesis Data Firehose delivery stream.

但是 SNS 可以直接推送到 Firehose,所以也许就这样做吧。

于 2021-02-18T10:56:28.963 回答