Skip to content

aleksandar-babic/tf-aws-vpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TF AWS VPC module

Simple Terraform module that deploys VPC and secures S3 using VPC Endpoint.

Usage

Inlcude module in your TF HCL files.

module "vpc" {
  source = "github.com/aleksandar-babic/tf-aws-vpc"

  name                       = "MySuperAwesomeVPC"
  env                        = "prod"
  region                     = "eu-west-1"
  cidr_block                 = "10.0.0.0/16"
  private_subnet_cidr_blocks = ["10.0.1.0/24", "10.0.3.0/24"]
  public_subnet_cidr_blocks  = ["10.0.0.0/24", "10.0.2.0/24"]
  availability_zones         = ["eu-west-1a", "eu-west-1b"]
  enable_s3_vpc_endpoint     = true
}

Outputs

  • vpc_id - ID of the VPC
  • public_subnet_ids - list of public subnet IDs
  • private_subnet_ids - list of private subnet IDs
  • nat_gateway_ips - list of EIPs attached to NAT Gateways

About

Yet another Terraform module for VPC deployment.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages