Sivaram Rasathurai
Sivaram Rasathurai

Reputation: 6363

API Destination [AWS - Event Bridge] could not be created for HTTPS endpoint which is within the VPC

I have a PUT API that can be accessed within the VPN. I have to invoke that API with a scheduler function. I found Event Bridge is a useful serverless resource that we can use to trigger the endpoint.

I created a connection and when I create the API Destination, The AWS Console shows the following error.

Failed to create the API Destinations. ParameterInvocationEndpoint is not valid. Reason: Endpoint 'https://test.net/events/test' is invalid. please provide a valid HTTPS endpoint URL

My PUT API is working, I confirmed with the postman.

Can anyone assist me to identify the issue to create the API Destination?

Upvotes: 1

Views: 3208

Answers (1)

Mark B
Mark B

Reputation: 200998

EventBridge doesn't run inside your VPC. It doesn't have access to your private VPC resources. The solution is to have EventBridge trigger the invocation of an AWS Lambda function that is configured to run inside your VPC, and then make your API call via the Lambda function.

Upvotes: 3

Related Questions