Problem
OPA Policy check task is not triggering on workspace
Prerequisites
- Terraform Enterprise
v202303-1
andv202304-1
- Terraform Enterprise Admin access
Cause
- OPA tool versions are not automatically added to Terraform Enterprise
v202303-1
andv202304-1
. This has been fixed inv202305-1
.
Solution:
-
Navigate to the OPA Versions admin page at
https://$YOUR_TFE_URL/app/admin/opa-versions
-
Follow instructions to Add Open Policy Agent (OPA) Tool Versions
Outcome
After adding the OPA tool version to Terraform Enterprise, the policy check task should trigger as expected.