iac-source-coupled-test
shell test asserts on raw IaC source text
Why
Text searches can pass on comments, formatting, or unreachable Terraform configuration without proving provider or runtime behavior.
Fix
Inspect rendered plan JSON, provider state, or deployed runtime behavior instead of grepping IaC source.
Examples
#!/bin/shgrep -q 'alert_policy' iac/alerts.tf#!/bin/shterraform show -json plan.out | jq -e '.resource_changes | length > 0'Files
**/*.sh**/*.bash**/*.zsh