Skip to content

Commit 5e86154

Browse files
committed
Fix VPC connector subnet CIDR requirement
- Change default private_subnet_cidr from /24 to /28 - VPC connectors require exactly /28 subnet mask (16 IP addresses) - Update variable description to clarify requirement
1 parent 61e2731 commit 5e86154

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

examples/dev/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ resource "google_secret_manager_secret" "hrafnar_auth_password" {
1515

1616
labels = {
1717
environment = var.environment
18-
project = "demo-openteams-ai"
18+
project = "test-${var.name_prefix}-openteams-ai"
1919
managed_by = "terraform"
2020
}
2121
}
@@ -80,7 +80,7 @@ module "hrafnar_deploy" {
8080
# Environment and labeling
8181
labels = {
8282
environment = var.environment
83-
project = "demo-openteams-ai"
83+
project = "test-${var.name_prefix}-openteams-ai"
8484
managed_by = "terraform"
8585
}
8686
}

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ variable "vpc_cidr" {
2727
}
2828

2929
variable "private_subnet_cidr" {
30-
description = "CIDR block for the private subnet"
30+
description = "CIDR block for the private subnet (must be /28 for VPC connector compatibility)"
3131
type = string
32-
default = "10.0.1.0/24"
32+
default = "10.0.1.0/28"
3333
}
3434

3535
variable "enable_nat_gateway" {

0 commit comments

Comments
 (0)