Interview Prep/Terraform/CI/CD and Automation

Is the saved plan file safe to store as a CI artifact?

AdvancedProductionCI/CD and Automation
Answer

No, not casually. Plan files include variable values and resource attributes in plaintext (even those marked sensitive), so treat them like state: private artifact storage, short retention, access limited to the apply job, and never upload to a PR comment. Prefer terraform show -no-color tfplan filtered output for humans and keep the binary only in encrypted storage.

All Terraform questions Roadmap: Terraform in production

More on CI/CD and Automation