amazon-web-servicespipeaws-event-bridge

Is it possible to use an Eventbridge pipe to target and SNS topic in another account


Much like the title says, I've been tasked with helping with a server less messaging system.

In Account A we have an SNS topic that sends messages via a cross-account subscription to a SQS topic in Account B.

This feeds an EC2 that does some business logic then outputs a message to another SQS queue in account B, I'd like to forward that message using Event-Bridge pipes from the sqs output queue in B back to the SNS in account A but get the following error when trying to deploy which seems to imply this isn't allowed.

{"ValidationErrorFields":[{"Name":"Target","Message":"Creating cross-account pipe is not permitted."}]}


Solution

  • According to the documentation, it should be possible - https://docs.amazonaws.cn/en_us/eventbridge/latest/userguide/eb-cross-account.html

    Have you looked at this documentation?

    Probably you are just missing the configuration of permissions on the event bus where you are receiving the events.