-
Notifications
You must be signed in to change notification settings - Fork 0
/
01-vpc.tf
31 lines (25 loc) · 1022 Bytes
/
01-vpc.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module "vpc" {
source = "git::ssh://[email protected]/TrackRbyPhoneHalo/it-fs-terraform-mod-vpc.git"
name = "${var.account_shorthand}-${var.environment}-VPC"
cidr = "${var.vpc_cidr}"
azs = ["${var.vpc_azs}"]
private_subnets = ["${var.vpc_private_subnets}"]
public_subnets = ["${var.vpc_public_subnets}"]
enable_dns_hostnames = "${var.vpc_enable_dns_hostnames}"
enable_nat_gateway = "${var.vpc_enable_nat_gateway}"
single_nat_gateway = "${var.vpc_single_nat_gateway}"
one_nat_gateway_per_az = "${var.vpc_one_nat_gateway_per_az}"
tags = "${merge(local.vpc_tags, var.tags)}"
}
locals {
vpc_tags = {
Environment = "${var.environment}"
Project = "${var.project}"
Service = "${var.service}"
Owner = "${var.owner}"
ExpirationDate = "${var.expiration_date}"
Monitor = "${var.monitor}"
CostCenter = "${var.cost_center}"
ManagedBy = "Terraform"
}
}