Problem Statement
Describe a typical CI/CD pipeline flow for deploying infrastructure using Terraform.
Explanation
A typical CI/CD pipeline for Infrastructure as Code follows several automated stages.
The first stage checks out code from version control and runs syntax validation. The next stage executes 'terraform plan' to generate an execution plan, followed by automated testing or peer review. Once approved, the 'apply' stage provisions infrastructure. Post-deployment, the pipeline may run drift detection, policy checks, and notifications. This structure ensures repeatable, auditable, and secure infrastructure delivery.
