I have two EC2 instances. Which are running on the same VPC with private subnet(NAT attached). Each Instances, I am running different services which are running on the port 7060(APP1) and 8090(APP2).
If I am making the requests to APP2 from APP1. It is going via APP1 --> NAT --> IGW --> ELB --> APP2.
Using the VPC endpoint can I send a requests like APP1 --> VPC endpoint --> APP2?
If it is possible using the VPC endpoint/other AWS services, please suggest/correct me if I am wrong..
Thank you.
I created the VPC endpoint(Interface endpoint) for the EC2 services and I allowed the ports in the endpoint's security group. When I try to send a requests via VPC endpoint, it is not connecting to the APP2 :-(