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

0

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 回答
1

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
专家
Uri
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则