0 votes
1 view
in AWS by (9.2k points)

I have two EC2 instances from an Ubuntu image, they are located in different regions. I just want to ask, whether they can communicate over the private IP addresses?

I have opened the required ports with a security group. I use netcat to test the communication, but it only works, when I use the public IP addresses.

1 Answer

0 votes
by (18.5k points)

Your instances can communicate as long as you set up a VPN and the communications take place over the Internet gateway of each VPC. Also, you need to make sure that you have assigned Elastic IPs to your instances in each VPC for this to work.

Note: Security groups cannot span across multiple regions

Visit the following link to learn how Multiple VPCs and instances in them can communicate.

https://aws.amazon.com/articles/connecting-multiple-vpcs-with-ec2-instances-ssl/

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...