Process Flow - Why data sources query existing infrastructure
Terraform Plan Start
Identify Data Sources
Query Existing Infrastructure
Retrieve Current State Info
Use Info in Resource Config
Apply Changes with Updated Data
Terraform Plan End
Terraform starts by finding data sources, queries existing infrastructure to get current info, then uses that info to configure resources before applying changes.