VPC (Virtual Private Cloud) is an important part of AWS: it is a private network that you can create for your account and it gives you very granular control of your networking needs. You can create subnets, assign IP addresses to your EC2 instances from these subnets, and adjust security settings to allow or block access from specific subnets.
Actually, every AWS account has a default VPC when you open the account. When you create an EC2 instance, you select a subnet from your default subnets and your instance is given a private IP address. While you create an instance, you can also give a public IP to your instance, so that your instance can be accessed from the public internet. But in a secured environment, you should assign only a private IP to your instance and block access to your instance from the public internet. In this case, you have a...