NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Computer Fundamentals
Before you can hack, defend, or analyze malware, you must understand the machines you are working with. The Computer Fun
ViewCybersecurity Foundations
Every great security professional starts with a rock-solid foundation. The Cybersecurity Foundations learning path is de
ViewEndpoint & Network Security Monitoring
Dive into the critical telemetry that powers modern threat detection. The Endpoint & Network Security Monitoring module
ViewIncident Response
Incident Response is the ultimate test of a security team. When the alerts turn into a confirmed breach, theory goes out
ViewSOC Tools: Hands-On Practicals
Theory is useless without muscle memory. You can read a hundred books on how a SIEM works, but until you’ve stared down
ViewRecon & Enumeration Tools
Reconnaissance is the foundation of every successful penetration test. Amateurs treat it as a box-ticking exercise, runn
ViewPreview · 30 min
Master evaluating Terraform plans with Conftest. Learn to parse JSON plans, write Rego policies for proposed states, and block misconfigurations in CI/CD.
Writing a secure Terraform configuration is only half the battle; the true test of security occurs at the moment of deployment. When a developer runs terraform plan, Terraform generates a precise, mathematical blueprint of exactly what will be created, modified, or destroyed in the cloud environment. If we can evaluate this blueprint against our security policies before a single API call is made, we can prevent misconfigurations from ever reaching production.
Evaluating Terraform Plans with Conftest is the practice of using Conftest—a specialized command-line utility for testing structured data with Open Policy Agent—to automatically validate Terraform plan JSON outputs against custom Rego policies. This matters because it shifts the enforcement of infrastructure security directly into the CI/CD pipeline. Instead of relying on post-deployment audits or manual code reviews, Conftest acts as an automated, deterministic gatekeeper, ensuring that every proposed infrastructure change strictly adheres to organizational compliance standards before it is approved for execution.
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign in