Infrastructure as code (IaC) declares managed cloud resources in machine-readable files, giving architecture a provisioning layer alongside services, environment variables, and application code. It shows what the system rents and runs underneath, but not the complete set of programs or external APIs it depends on. section 9.2 section 9.6
Terraform exposes the cloud layer
A main.tf file can define a PostgreSQL database, an S3 bucket for uploads, and an SQS queue. These resources reveal infrastructure that may be absent from a local compose file, while application code and environment variables reveal how the running programs connect to them. section 9.2
Use IaC as one layer of an architecture investigation:
- Inventory the services you run, third-party services you rent, and external APIs you call. section 9.6
- Inspect IaC for managed resources, then compare those resources with environment variables and application connections. section 9.2
- Trace one user action end to end; IaC identifies infrastructure nodes but does not replace runtime investigation. section 9.6
















