Beginner1h estimated
OPA and Rego Fundamentals
Install Open Policy Agent locally and use Rego to check EC2 instance metadata settings in Terraform plans. Compare noncompliant and compliant plans, check OPA exit codes, and run policy tests without an AWS account.
Topics Covered
Open Policy AgentRegoPolicy as CodeTerraformAmazon EC2IMDSv2
Prerequisites
- Terraform 1.5 or later, OPA 1.x, and jq
- Internet access to download the lab code, tools, and AWS provider
- Basic command-line familiarity
Created by
Ready to get started?
Sign up or log in to access the full walkthrough with step-by-step instructions and progress tracking.