2

quick question. I am planning to minimize use of resources by passing SNS topic as a source to EventBridge instead of passing it thru Lambda, then from EventBridge to Firehose. I tried but it is not working. Is it possible, or Lambda is the only way to make it as a source?

Charmee Lee
  • 123
  • 1
  • 9

2 Answers2

4

Its not possible. The only valid subscriptions to a SNS topic 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.

But SNS can push directly to Firehose, so maybe just do this.

Marcin
  • 215,873
  • 14
  • 235
  • 294
  • Oh okay got it. yup I tested SNS to Firehose and seems to work. it's just that I want to use EventBridge so I can fire it out to many targets. I noticed that SNS could be used as event source but particularly as AWS event, not the SNS message sent to a specific topic right? – Charmee Lee Feb 18 '21 at 11:47
  • @CharmeeLee That's correct. You can use SNS as AWS events, but not for sending messages to EB. For that you need sns topic subscription, which does not support EB. – Marcin Feb 18 '21 at 11:57
0

Has something changed since the last answer? Now it is possible to set aws.sns as source for an EventBridge rule (as shown in the below picture), but it does not seem to trigger the rule anyway... The question is, why do the AWS team let the users select aws.sns as source if it cannot work?

Francesco Alongi
  • 499
  • 3
  • 13
  • It might be referring to the CloudTrail events that are associated with SNS. Not, the messages that placed in the SNS topic; but not sure. – Kyle Bridenstine Mar 21 '23 at 20:02