Explore Courses Blog Tutorials Interview Questions
0 votes
in AWS by (12.9k 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.2k 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.

Related questions

0 votes
1 answer

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

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

30.4k questions

32.5k answers


108k users

Browse Categories