Last active
January 1, 2021 18:00
-
-
Save madagra/02243fec0b9b9d448fcb974e9ba6e519 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data "aws_availability_zones" "available" { | |
state = "available" | |
} | |
module "vpc" { | |
source = "terraform-aws-modules/vpc/aws" | |
version = "~> 2.48.0" | |
name = "example_vpc" | |
cidr = "10.0.0.0/16" | |
azs = data.aws_availability_zones.available.names | |
private_subnets = ["10.0.1.0/24", "10.0.2.0/24"] | |
public_subnets = ["10.0.101.0/24", "10.0.102.0/24"] | |
enable_ipv6 = false | |
enable_nat_gateway = true | |
enable_vpn_gateway = true | |
enable_dns_hostnames = true | |
enable_dns_support = true | |
tags = { | |
Terraform = "true" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment