You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
Cristobal
committed
feat: default calculated_subnet_az_capacity to 3 AZ slots
Three AZs is the most common regional layout; the previous default of 6
reserved slots most deployments never use and broke small VPCs (e.g. a /24
inspection VPC with three /28 groups). Regions with more AZs can raise the
value up to 6.
The value is fixed at creation time: changing it on an existing VPC
renumbers calculated subnets. Documented in the variable description,
docs/addressing.md, and the CHANGELOG.
Tests: existing slot-stability runs pin the value they were written
against (6); two new runs exercise the new default (full three-slot
allocation within a /24, and 1->2 AZ scale-up without renumbering).
Suite: 182 passed, 0 failed. Mutation check: reverting the default to 6
fails 4 runs.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ All notable changes to this module are documented in this file. The format follo
25
25
- Moved NAT configuration to a VPC-wide contract and made subnet groups opt into NAT routing independently.
26
26
- Made isolated subnet roles fail closed for Internet, NAT, TGW, Cloud WAN, and generic routes; injected isolated route tables require an explicit caller-responsibility opt-in.
27
27
- Split outputs into stable Tier 1 handles, deprecated Tier 2 v4 compatibility aliases, and unstable Tier 3 provider-shaped collections.
28
+
- Set `calculated_subnet_az_capacity` to a default of 3 reserved AZ slots per calculated subnet group, matching the most common regional layout; regions with more AZs can raise it up to 6. The value is fixed at creation time: changing it on an existing VPC renumbers calculated subnets.
Copy file name to clipboardExpand all lines: docs/addressing.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ Each subnet group selects exactly one IPv4 mode:
86
86
| Calculated |`netmask`, optionally `cidr_index`| Deterministic; pin groups that must not move. |
87
87
| IPAM |`ipam_pool_id` and `netmask_length`| CIDR may remain unknown until apply. |
88
88
89
-
Calculated allocation reserves six AZ slots per group. A pinned `cidr_index` is an absolute group slot and does not move when other groups or AZs are added. Unpinned groups pack largest-first and then alphabetically, so adding or removing an earlier group can move later unpinned ranges.
89
+
Calculated allocation reserves three AZ slots per group by default (`calculated_subnet_az_capacity`, raisable to six). A pinned `cidr_index` is an absolute group slot and does not move when other groups or AZs are added. Unpinned groups pack largest-first and then alphabetically, so adding or removing an earlier group can move later unpinned ranges.
90
90
91
91
`ipv4.secondary_cidr_key` selects the parent secondary IPv4 association. Omitting it selects the primary VPC CIDR.
0 commit comments