Your AI agent generates infrastructure. The syntax is valid. The plan passes. Then someone catches a security group open to0.0.0.0/0, or a database in a public subnet.
pluvian catches these before anyone deploys. You write rules that read like policy. The engine checks your Terraform against every rule on every save.
The spec file is TypeScript constrained to read like English. The person accountable for a policy can review it in a pull request without trusting that a Rego specialist got it right.
import { rule, AwsResource, Port } from '@erkos/pluvian' export const spec = [ rule() .resource(AwsResource.SecurityGroup) .denyIngress(Port.SSH, Port.RDP) .message('SSH and RDP must not be open to the internet') .rationale('CIS AWS Benchmark v1.4, 5.2'), ]
144 rules ship across 8 presets. Spread them into your spec, then write your own.
All three read the same spec and produce the same verdicts. Your editor and your CI cannot disagree.
pluvian check after writing Terraform. Findings appear as text it can read and fix — before a pull request exists..tf file and the squiggle appears in 500ms — VS Code, Cursor, Windsurf. The engine ships inside the extension.The extension puts a red underline on the resource block the moment the file is saved. Same engine, same spec, same verdict as CI.
When pluvian can't statically resolve a value — a CIDR from a variable with no default — the output says could not evaluate. It never guesses a verdict.
To suppress a finding, you write # pluvian:ignore: <reason>above the resource. The reason is required. It lives in the file, shows up in code review, and enters git history.