Infrastructure-as-Code
Drop a Terraform state file or compiled Bicep ARM JSON to enrich your cloud inventory with explicit dependency edges. Edges land in the topology graph with detector="iac" so investigations can cite "this dependency was declared in main.tf" alongside Resource Graph-derived edges.
Upload Terraform state
.tfstate JSON (state version 4). For larger setups, point your CI at POST /api/iac/terraform after every apply.
What gets extracted
Explicit dependencies from each instances[].dependencies array.
Implicit dependencies from instances[].attributes values that look like ARM ids, ARNs, or k8s URIs.
Confidence: 85 for explicit, 70 for implicit. Always lower than Resource Graph (95) because IaC describes intent; Graph describes state.
Edges only persist when both endpoints are already in the cloud inventory — if you uploaded before the first cloud sync completed, re-upload after.
CI / CD integration
# .github/workflows/post-apply.yml — after terraform apply
- name: Upload state to VinTekh
run: |
JSON=$(jq -Rs '{fileName: "prod.tfstate", content: .}' \
< ./terraform.tfstate)
curl -fSs -X POST \
-H "authorization: Bearer $VINTEKH_TOKEN" \
-H "content-type: application/json" \
--data "$JSON" \
https://vintekh.example.com/api/iac/terraformTerraform state docs