1.

What do you mean by a Virtual Private Cloud (VPC)? Which command do you use in Terraform to use a VPC service?

Answer»

A Virtual Private Cloud (VPC) is a private virtual network within AWS where you can store all of your AWS services. It will have gateways, route tables, network access control lists (ACL), subnets, and security groups, and will be a logical data centre in AWS. When you create a service on a public cloud, it is effectively open to the rest of the WORLD and can be vulnerable to internet attacks. You lock your instances down and secure them from outside threats by putting them INSIDE a VPC. The VPC limits the types of TRAFFIC, IP addresses, and individuals who have access to your instances.

This STOPS unauthorised users from ACCESSING your resources and protects you from DDOS assaults. Because not all services require internet connection, they can be safely stored within a private network. You can then only allow particular machines to connect to the internet.

We use the command aws_vpc to use a VPC Service in Terraform.



Discussion

No Comment Found