From fddc51f5c5e4e2c7ac7eb33cde2ba9fe28386bbd Mon Sep 17 00:00:00 2001 From: peterdudfield Date: Tue, 31 Oct 2023 15:17:38 +0000 Subject: [PATCH] update --- terraform/modules/networking/output.tf | 4 ++++ terraform/nowcasting/development/main.tf | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/terraform/modules/networking/output.tf b/terraform/modules/networking/output.tf index 0ba3f61f..dd786647 100644 --- a/terraform/modules/networking/output.tf +++ b/terraform/modules/networking/output.tf @@ -9,3 +9,7 @@ output "public_subnets" { output "private_subnet_group" { value = aws_db_subnet_group.private_subnet_group } + +output "public_internet_gateway" { + value = aws_internet_gateway.public_internet_gateway +} diff --git a/terraform/nowcasting/development/main.tf b/terraform/nowcasting/development/main.tf index 1fb33836..fa0461f7 100644 --- a/terraform/nowcasting/development/main.tf +++ b/terraform/nowcasting/development/main.tf @@ -56,12 +56,12 @@ module "pvsite_subnetworking" { region = var.region environment = var.environment - vpc_id = var.vpc_id + vpc_id = module.networking.vpc_id public_subnets_cidr = var.public_subnets_cidr private_subnets_cidr = var.private_subnets_cidr availability_zones = local.production_availability_zones domain = "pvsite" - public_internet_gateway_id = var.public_internet_gateway_id + public_internet_gateway_id = networking.public_internet_gateway.id } @@ -149,7 +149,7 @@ module "pvsite_api" { region = var.region environment = var.environment - vpc_id = var.vpc_id + vpc_id = module.networking.vpc_id subnets = [module.pvsite_subnetworking.public_subnet.id] docker_version = var.pvsite_api_version domain = "pvsite" @@ -177,7 +177,7 @@ module "pvsite_database" { region = var.region environment = var.environment db_subnet_group = module.pvsite_subnetworking.private_subnet_group - vpc_id = var.vpc_id + vpc_id = module.networking.vpc_id db_name = "pvsite" rds_instance_class = "db.t3.small" allow_major_version_upgrade = true