What is VPC in Amazon cloud?

The word VPC stands for virtual private cloud. In the Amazon cloud, any resources that wish to communicate with each other (eg EC2, RDS) need to be under the same VPC. If the VPC is connected to the Internet via an Internet Gateway, the resources can also communicate via the Internet.

Example of VPC with daily usage:

In our home network, we have multiple devices connected to the home network. If two devices in our home network want to connect, they need to be connected to the same network. We cannot connect to the neighbor’s devices because they are on a different network.

The same rule is true for a VPC. Any resources that wish to communicate with each other (such as EC2, RDS) need to be on the same VPC.

Where VPC is used:

Amazon EC2 instances are always connected to a VPC. If two EC2 resources want to communicate with each other they need to be on the same VPC.
AWS Elastic Beanstalk deploys Amazon EC2 instances, so they are connected to a VPC too.
Amazon RDS instances use EC2 instances behind the scenes. We can say that Amazon RDS instances are connected to a VPC.
AWS Lambda functions are optionally connected to a VPC.
Amazon S3 is always running and accessible from the Internet. We usually use it and it does not connect to the VPC.
Reference: