skip to Main Content

I am trying to send event which comes to EventBridge to my service endpoint with event as payload, now my service is running on ec2 instance and part of a specific VPC, and is listening for http requests, my initial plan was to use API destination as the target of my rule, but when configuring the destination, i am being forced to provide https endpoint. This is a problem, my service is created to handle http calls not https

I am able to choose another target called API Gateway, now this documentation here is not saying anything about https, is it possible to use this to make http calls to this service, if this is not the right way, is there any way to make http calls to my service using the event as payload

2

Answers


  1. Chosen as BEST ANSWER

    This can be done in multiple ways, one is to create a Lambda function which can be attached to the VPC where the ALB is running, and attach this Lambda as a target to rule target, in Lambda you can configure max concurrent executions and a dlq for events which cant get an execution chance(will not happen mostly if the volume is not too high)

    second is to create public Rest APi which and a new VPC Link has to be configured for this, using this VPC Link requests can reach this ALB

    One more option is to create SQS queue as target and service should have a consumer for this, but this means endpoints wont be used anymore


  2. Disclosure: EventBridge Product Manager here.

    Currently delivering events to private HTTP/S endpoints in VPC is only possible through workarounds e.g., using intermediary Lambda or SQS resources.

    Feel free to reach out to your AWS account/support team so we can discuss this requirement further.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search