terraform-aws-vpc

Terraform VPC Module

resource "aws_vpc" "main" {
  cidr_block       = var.cidr_block
  instance_tenancy = "default"
  tags             = var.tags
}

Please copy-paste the following code:

module "app_name" {
  source        = "devdot4/vpc/aws"
  region        = "us-east-1"
  cidr_block    = "10.0.0.0/16"
  public_cidr1  = "10.0.101.0/24"
  public_cidr2  = "10.0.102.0/24"
  public_cidr3  = "10.0.103.0/24"
  private_cidr1 = "10.0.1.0/24"
  private_cidr2 = "10.0.2.0/24"
  private_cidr3 = "10.0.3.0/24"
  tags = {
    Name    = "VPC"
    Team    = "DevOps"
    Billing = "CFO"
    Quarter = "3"
    AppName = "Wordpress"
  }
}