/VPC-Demo

A Terraform configuration to provision a virtual private cloud on AWS with two subnets, a public subnet where EC2 instances should expose to the Internet and a private for confidential instances.

Primary LanguageHCL

AWS VPC-Demo

A Terraform configuration for a VPC providing networking capabilities to a virtual Linux. The VPC is to have two subnets:

  • Public subnet with an IPv4 CIDR block of 10.1.1.0/25 or 128 IP addresses ranging from 10.1.1.0 to 10.1.1.127
  • Private subnet with an IPV4 CIDR block of 10.1.1.128/25 also with 128 IP addresses from 10.1.1.128 to 10.1.1.255

image

This configuration will create an Internet Gateway to connect the VPC to the Internet. image

Additionally, it will create a route table to govern network traffics between the VPC public subnet and its Internet gateway image

Finally, within this VPC an EC2 instance with an Apache HTTP Server already up, running, and delivering a simple HTML page at the instance default route "/".

image