# ---------------------------------------------------------------------------------------------------------------------- # REQUIRE A SPECIFIC TERRAFORM VERSION OR HIGHER # This module has been updated with 0.15.1 syntax, which means it is no longer compatible with any versions below 0.15.1. # ---------------------------------------------------------------------------------------------------------------------- ###################################### # Defaults ###################################### terraform { required_version = ">= 0.15.1" backend "remote" {} } provider "aws" { region = var.region } resource "random_string" "rand4" { length = 4 special = false upper = false } module "vpc_label" { source = "aws-quickstart/label/aws" version = "0.0.1" region = var.region namespace = var.namespace env = var.env #account = var.account_name name = "${var.name}-${random_string.rand4.result}" delimiter = var.delimiter tags = tomap({ propogate_at_launch = "true", "terraform" = "true" }) } ###################################### # Create VPC ###################################### module "quickstart_vpc" { source = "../modules/vpc" create_vpc = var.create_vpc name = module.vpc_label.id region = var.region cidr = var.cidr public_subnets = var.public_subnets private_subnets_A = var.private_subnets_A private_subnets_B = var.private_subnets_B tags = module.vpc_label.tags }