amazon-web-serviceslambdaamazon-cloudwatchamazon-kinesis-firehoseaws-event-bridge

Can SNS Topic be a source to EventBridge?


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?


Solution

  • 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.