Very preliminary tf scripting.

This commit is contained in:
James Wells 2021-05-30 08:14:36 -07:00
parent 0266d9ee8a
commit f1844c1a4e
Signed by: jwells
GPG key ID: 73196D10B8E65666
8 changed files with 275 additions and 0 deletions

23
tfenv/cluster/vpc.tf Normal file
View file

@ -0,0 +1,23 @@
variable "region" {}
variable "provider_alias" {}
variable "regional_vpc_cidr" {
description = "A simple map of VPC subnets used by region"
type = map
default = {
"us-west-2" = "10.172.64.0/19",
"us-east-1" = "10.172.0.0/19",
}
}
resource "aws_vpc" "gagent" {
instance_tenancy = "default"
enable_dns_support = true
cidr_block = var.regional_vpc_cidr[var.region]
tags = merge(
var.extra_tags,
{
Name = "gagent"
}
)
}