Commit ff32b29
Update to terraform-aws-dynamic-subnets v3.0.1
Updated the aws-vpc component to use terraform-aws-dynamic-subnets v3.0.1,
which includes a critical bug fix for NAT Gateway routing when max_nats is set
to fewer than the number of Availability Zones.
**Changes:**
1. **src/main.tf**: Updated module version from 3.0.0 to 3.0.1
2. **README.yaml**: Updated all references to v3.0.1
- Added note about NAT routing bug fix
- Updated related links to point to v3.0.1 release
3. **README.md & src/README.md**: Regenerated from README.yaml
- Module version updated in tables
- Feature list includes bug fix note
- Related links updated
4. **docs/prd/upgrade-to-dynamic-subnets-v3.md**:
- Updated title and version to 3.0.1
- Added executive summary note about v3.0.1 patch
- Updated all code examples to show v3.0.1
- Changed "After (v3.0.0)" to "After (v3.0.x)" for clarity
- Added v3.0.1 bug fix to success criteria
- Added v1.2 changelog entry
- Updated PRD version to 1.2 and date to 2025-11-03
**v3.0.1 Release Notes:**
The v3.0.1 patch fixes a critical bug where NAT Gateway routing failed with
"Invalid index" error when max_nats was set to fewer than the number of AZs.
This was caused by route tables attempting to reference non-existent NAT indices.
The fix adds modulo operations to the route table mapping formulas, ensuring
all route tables correctly reference available NAT Gateways.
**Testing:**
All existing tests pass without modification. The component test suite
comprehensively validates:
- NAT placement by index (TestNATPlacementByIndex)
- NAT placement by name (TestNATPlacementByName)
- Separate subnet counts (TestSeparateSubnetCounts)
- All other VPC configurations
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 08a390f commit ff32b29
File tree
5 files changed
+39
-31
lines changed- docs/prd
- src
5 files changed
+39
-31
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
229 | 230 | | |
230 | 231 | | |
231 | 232 | | |
232 | | - | |
| 233 | + | |
233 | 234 | | |
234 | | - | |
235 | | - | |
236 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | | - | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | | - | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
53 | | - | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
68 | | - | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
86 | | - | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
90 | | - | |
| 92 | + | |
| 93 | + | |
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
| |||
159 | 162 | | |
160 | 163 | | |
161 | 164 | | |
162 | | - | |
| 165 | + | |
163 | 166 | | |
164 | 167 | | |
165 | 168 | | |
| |||
672 | 675 | | |
673 | 676 | | |
674 | 677 | | |
675 | | - | |
| 678 | + | |
676 | 679 | | |
677 | 680 | | |
678 | 681 | | |
| |||
684 | 687 | | |
685 | 688 | | |
686 | 689 | | |
687 | | - | |
688 | | - | |
| 690 | + | |
| 691 | + | |
689 | 692 | | |
690 | 693 | | |
691 | 694 | | |
692 | 695 | | |
693 | 696 | | |
| 697 | + | |
694 | 698 | | |
695 | 699 | | |
696 | 700 | | |
| |||
791 | 795 | | |
792 | 796 | | |
793 | 797 | | |
| 798 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
0 commit comments