How to set up VPC in aws

What is VPC ?
  • virtual private cloud (VPC) is a virtual network dedicated to your AWS account.
  • It is logically isolated from other virtual networks in the AWS cloud.
  • This virtual network closely resembles a traditional network that you’d operate in your own data center.
  • You can launch your AWS resources, such as Amazon EC2 instances, into your VPC.
What is Subnet?
    • subnet is a range of IP addresses in your VPC.
    • You can launch AWS resources into a subnet that you select.
    • Use a public subnet for resources that must be connected to the Internet
  • Use a private subnet for resources that won’t be connected to the Internet.
What is Routing Table?
  • A route table contains a set of rules, called routes, that are used to determine where network traffic is directed.
  • Each subnet in your VPC must be associated with a route table; the table controls the routing for the subnet.
  • A subnet can only be associated with one route table at a time, but you can associate multiple subnets with the same route table.
What is Internet Gateway (IGW) ?
  • An Internet gateway is a horizontally scaled, redundant, and highly available VPC component that allows communication between instances in your VPC and the Internet.
  • It therefore imposes no availability risks or bandwidth constraints on your network traffic.
  • An Internet gateway serves two purposes:
  • Provide a target in your VPC route tables for Internet-routable traffic.
  • Perform network address translation (NAT) for instances that have been assigned public IP addresses.