Skip to content

Terraform module for VPC internet gateways

License

Notifications You must be signed in to change notification settings

virsas/terraform_vpc_igw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform_vpc_igw

Terraform module to create VPC internet gateway in AWS

Variables

# name: the name of the VPC internet gatewa
variable "vpc_igw_example" { default = "example" }

Dependency

VPC https://github.com/virsas/terraform_vpc

Terraform example

######################
# VPC IGW variables
######################
variable "vpc_igw_default" { default = "DefaultGW" }

######################
# VPC internet gateway
######################
module "vpc_igw" {
  source = "git::https://github.com/virsas/terraform_vpc_igw.git?ref=v1.0.0"
  vpc    = module.vpc_main.id
  name   = var.vpc_igw_default
}