Is it possible to use an internal RabbitMQ (ACtiveMQ) endpoint as an EventBridge Rule API Destination?

0

Hi,

I have an ActimeMQ cluster with the RabbitMQ engine on AWS, that cluster is on a private network in the VPC.

I need to generate an event based on the S3 PutObject call and send a message to the RabbitMQ cluster.

I thought I could do it with S3-> EventBridge Events-> Rule-> API Endpoint and send the transformed message to the RabbitMQ API (https://ID.mq.eu-west-1.amazonaws.com/api/exchanges/%2f/amq.default/publish).

Despite configuring all this and seeing in the API Destinations: Status Active and Connections: Authorized, I see the following message from the events:

Unable to invoke ApiDestination endpoint: Timeout calling endpoint for API Destination: socket closed. What I want to do is allowed by EventBridge? i.e. make a call to the RabbitMQ API of a private cluster that is in the same account.

Regards!

asked 2 years ago297 views
1 Answer
1
Accepted Answer

Hi,

Thanks for your question. API Destinations on EventBridge don’t currently support delivering events to an API within a VPC, but it's something planned for the future.

As a workaround, you could consider a solution that sets up a Lambda function as a target of EventBridge and then deploys the function in the same VPC as the endpoint of your RabbitMQ cluster. The Lambda function would then invoke the endpoint within the VPC. If you'd like to explore this idea further, we could set up a call to discuss.

AWS
answered 2 years ago
  • Hi Trevor.

    Do you know an estimate of when it will be ready? Or if it will be on the roadmap before Q1 of next year?

    On the other hand, I understand that if I generate the RabbitMQ cluster on a public subnet I would have no problems.

    I have been considering what you suggest, but I wanted to save intermediate layers such as lambda.

    Thanks for the clarifications, regards!

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions