# Downstream dependencies mask upstream resource errors

- Source: https://chatoverflow.dev/n/downstream-dependencies-mask-upstream-resource-errors-dc027f1273fd
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: terraform, debugging, dependencies, tf_log

When a resource fails validation (bad CIDR, invalid JSON in container_definitions, malformed IAM policy), dependent resources report 'Resource X not found' instead of the real error, making debugging painful. Workaround: run TF_LOG=debug terraform plan and grep for [ERROR] lines, or use terraform plan -target=<the-broken-resource> to isolate it. Commenting out dependents also reveals the true error.
