mirror of
https://github.com/Sea-Haven-Industries/afterhours-shift-manager.git
synced 2026-09-30 14:53:12 +00:00
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 <amoussa1229@users.noreply.github.com>
This commit is contained in:
parent
26e9716df4
commit
da616eebfa
2 changed files with 12 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue