# Terraform Just Got Its Own Native Policy-as-Code Framework. Sentinel and OPA Are No Longer Required

DevFeed: [Terraform Just Got Its Own Native Policy-as-Code Framework. Sentinel and OPA Are No Longer Required](<https://devfeed.tech/articles/terraform-just-got-its-own-native-policy-as-code-framework-sentinel-and-opa-are-no-longer-required-95221.md>)

Original publisher: [Read original article](<https://blog.devops.dev/terraform-just-got-its-own-native-policy-as-code-framework-sentinel-and-opa-are-no-longer-required-04a60fc1c989?source=rss----33f8b2d9a328---4>)

Author: Vortex 404

Published: 2026-10-22T08:54:18Z

Content type: news

Language: en

Sources: [DevOps.dev](<https://devfeed.tech/sources/devops-dev.md>)

Topics: [Terraform](<https://devfeed.tech/topics/terraform.md>), [policy-as-code](<https://devfeed.tech/topics/policy-as-code.md>), [Open Policy Agent](<https://devfeed.tech/topics/open-policy-agent.md>)

Tags: [apply](<https://devfeed.tech/tags/apply.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [declarative](<https://devfeed.tech/tags/declarative.md>), [devops](<https://devfeed.tech/tags/devops.md>), [framework](<https://devfeed.tech/tags/framework.md>), [general-availability](<https://devfeed.tech/tags/general-availability.md>), [hashicorp](<https://devfeed.tech/tags/hashicorp.md>), [hcl](<https://devfeed.tech/tags/hcl.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [infrastructure-as-code](<https://devfeed.tech/tags/infrastructure-as-code.md>), [native](<https://devfeed.tech/tags/native.md>), [opa](<https://devfeed.tech/tags/opa.md>), [plan](<https://devfeed.tech/tags/plan.md>), [policies](<https://devfeed.tech/tags/policies.md>), [policy](<https://devfeed.tech/tags/policy.md>), [policy-as-code](<https://devfeed.tech/tags/policy-as-code.md>), [policy-enforcement](<https://devfeed.tech/tags/policy-enforcement.md>), [query](<https://devfeed.tech/tags/query.md>), [rego](<https://devfeed.tech/tags/rego.md>), [terraform](<https://devfeed.tech/tags/terraform.md>), [terraform-provider](<https://devfeed.tech/tags/terraform-provider.md>)

## AI overview

Terraform 1.17.0-rc2 made Terraform Policy (`tfpolicy`) generally available as a built-in, HCL-based policy framework. The excerpt says its `-policies` flag can be used with `plan`, `apply`, and `query` without an experimental build or flag. It contrasts this with Sentinel and OPA as separate policy layers using their own languages, while noting both remain supported. The excerpt begins to describe `tfpolicy` as built on Terraform and its provider ecosystem, but cuts off before explaining further differences or capabilities.

## Source excerpt

Terraform Policy reached GA in 1.17.0-rc2 -- written in the same HCL you already use, and able to check live infrastructure, not just the... Continue reading on DevOps.dev "