快速提问。我计划通过将 SNS 主题作为源传递到 EventBridge,而不是通过 Lambda 传递,然后从 EventBridge 传递到 Firehose,从而最大限度地减少资源的使用。我尝试过,但它不起作用。有可能吗,或者 Lambda 是使其成为源的唯一方法?
最佳答案
不可能。 SNS 主题的唯一有效订阅are :
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,所以也许就这样做。
关于amazon-web-services - SNS 主题可以成为 EventBridge 的来源吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66257484/