简体   繁体   中英

AWS EventBridge API Destination can't connect to EC2 private IP

My goal is to forward messages from EventBridge over HTTPS to an instance in EC2 running httpd server. The instance only has its private IP.

It turned out that the EventBridge's API Destination with its Targets and Connections works beautifully with external IPs, but no communication is happening to the Private IP. As part of the experiment Security is set to accept all https/http connections from all 0.0.0.0/0.

I am seriously considering EventBridge -> Lambda function with VPC bind -> EC2 Private IP.

But I am having that nagging feel that I maybe missing something with the API Destination, some network magic? An endpoint?

Any advice is welcome!

EventBridge over HTTPS to an instance in EC2 running httpd server. The instance only has its private IP.

You can't do this. HTTPS requires valid public domain with valid public SSL certificate. This in turn requires your instance to be accessible from the internet.

The instance itself can be private only, but in that case you have to front it with internet facing ALB , which will handle HTTPS for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM