Skip to content

fix(network): narrow depends_on to stop plan-time replacements - #278

Merged
OlamideOl1 merged 1 commit into
mainfrom
fix/network-depends-on-plan-deferral
Sep 23, 2026
Merged

OlamideOl1 merged 1 commit into
mainfrom
fix/network-depends-on-plan-deferral

Conversation

@OlamideOl1

Copy link
Copy Markdown
Contributor

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.

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>
@OlamideOl1
OlamideOl1 merged commit e2a3a04 into main Sep 23, 2026
4 checks passed
@OlamideOl1
OlamideOl1 deleted the fix/network-depends-on-plan-deferral branch September 23, 2026 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant