How can I call a service hosted in my private VPC by its private endpoint from EventBridge's API Destination?


I have a service which is hosted in my private VPC and currently we are using API Gateway to expose it publicly. All our API calls go through it. So right now EventBridge's API Destinations point to the API Gateway's public endpoint. But we would like to change that and call the service at its private endpoint from EventBridge's API Destination itself so as to make sure our internal service calls stays in our VPC. How can we go about this?

1 Answer

EventBridge does not have direct integration with VPC resources. Your options are:

  1. Invoke a Lambda function which is attached to the VPC that will make the call to the service.
  2. Place the message into an SQS queue and let the service poll the queue for messages (this required to rearchitect the service itself).

There might be other workarounds not listed above.

profile pictureAWS
answered a year ago

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