From da616eebfa0c294fa3b2f6ae4d872e1d7d52cffd Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 21 Sep 2026 23:45:18 +0000 Subject: [PATCH] feat(infra): export vpc_id and public subnet outputs (DEV-289) Portal Fargate and meals already attach to this VPC. These outputs are the HCP existing_vpc_id / existing_public_subnet_ids values. Co-authored-by: Adam Moussa --- terraform/locals.tf | 5 ++--- terraform/outputs.tf | 10 ++++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/terraform/locals.tf b/terraform/locals.tf index d725baf..319c9d9 100644 --- a/terraform/locals.tf +++ b/terraform/locals.tf @@ -15,9 +15,8 @@ locals { artifacts_bucket_name = "afterhours-shift-manager-artifacts-${local.account_id}" ssm_prefix = "/afterhours-shift-manager" - # Prod has no default VPC. 10.70 is unused in 011934824531 - # (10.0 proposal-system, 10.20 payments-dashboard, 10.40 syslog, - # 10.60 meal-order-manager, 10.80 apm-wo). + # Prod has no default VPC. This stack owns 10.70. Meals attaches with + # existing_vpc_id. Portal Fargate (PLAT-217) should too. Do not mint 10.62. vpc_cidr = "10.70.0.0/16" public_subnet_cidrs = ["10.70.0.0/24", "10.70.1.0/24"] table_name = "afterhours-shifts" diff --git a/terraform/outputs.tf b/terraform/outputs.tf index 6e5ecca..bfe1589 100644 --- a/terraform/outputs.tf +++ b/terraform/outputs.tf @@ -57,3 +57,13 @@ output "hcptf_plan_role_arn" { description = "HCP plan role ARN. Set TFC_AWS_PLAN_ROLE_ARN after the bootstrap window." value = aws_iam_role.hcptf_plan.arn } + +output "vpc_id" { + description = "VPC that meals already attaches to. Portal Fargate prod sets existing_vpc_id to this value." + value = aws_vpc.this.id +} + +output "public_subnet_ids" { + description = "Public subnet IDs for ALB and Fargate. Portal HCP existing_public_subnet_ids." + value = aws_subnet.public[*].id +}