Hi! In the previous part, we have created our own private cloud using VPC on AWS. If you haven't read it, make sure you do, before starting this article.
So let's test our VPC. I created 3 EC2 instances in 3 different subnets, as you can see below:
So let's log into our instance that has a public IP address and try to ping Google.
I have logged into my instance and sent some packages to Google, and as we can see it has an Internet connection:
Let's log into our Appus-private-subnet-A instance through a private IP address. Using the ssh command we can log into it "ssh -i your_key.pem ubuntu@your_private_ip". Now we can ping any host.
As we can see, it is connected to the Internet through the NAT server. But the Internet can not ping our instance since it has no public IP address. So let's exit this server and log into an isolated server.
Using the ssh command we can log into an isolated server - "ssh -i your_key.pem ubuntu@your_private_ip". If we try to ping any Internet host there will be no packages received.
This is it, I hope this article was helpful for you!