Commit e2a3a04
fix(network): narrow depends_on to stop plan-time replacements (#278)
Module-level depends_on on modules with pending changes defers every data
source inside the dependent module to apply time. Changing cluster_names
(which only retags the VPC and subnets) therefore made the S3 endpoint's
aws_region lookup unknown and forced replacement of the VPC endpoint.
- s3_endpoint: drop depends_on; route_table_ids already orders it after the
route tables
- nat_gateway / public_subnet_routes: drop module.public_subnets from
depends_on; subnets are already passed by value. Keep the internet gateway
dependency, which is still required.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent a8f82fd commit e2a3a04
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
105 | 103 | | |
106 | 104 | | |
107 | 105 | | |
| |||
0 commit comments