tf-cf-aws-3tier-dev/terraform/terraform.tfvars
mharb dfb31a3d74 Patch for_each loop through template variable.
The for_each loop that builds multiple resources now correctly sets values for each resource. Previously we did not descend into each object.
2023-10-02 16:53:22 -04:00

57 lines
1.2 KiB
HCL

region = "us-gov-west-1"
disaster_zones = ["us-gov-west-1a", "us-gov-west-1b"]
vpc_cidr = "10.1.0.0/16"
private_cidrs = ["10.1.2.0/24", "10.1.3.0/24", "10.1.4.0/24", "10.1.5.0/24"]
public_cidrs = ["10.1.0.0/24", "10.1.1.0/24"]
exposed_ports = ["80", "22"]
ec2_template = [
{
hostname = "bastion1"
ami = "winami"
elastic_ip = false
family = "t3a.medium"
disksize = "50"
subnet = "10.1.0.0/24"
},
{
hostname = "wpserver1"
ami = "rhelami"
elastic_ip = false
family = "t3a.micro"
disksize = "20"
subnet = "10.1.2.0/24"
},
{
hostname = "wpserver2"
ami = "rhelami"
elastic_ip = false
family = "t3a.micro"
disksize = "20"
subnet = "10.1.3.0/24"
}
]
db_template = [
{
name = "rds1"
engine = "postgres"
engine_version = 11
class = "db.t3.micro"
family = "postgres"
subnet = "10.1.5.0/24"
}
]
ssh_public_key = "sooper sekrit"
tags = {
lob = "cloud"
owner = "matt@coalfire.com"
environment = "dev"
open_to_internet = "true"
builder = "terraform"
project = "coalfire-3tier"
}