Skip to content
Back to skills

Policy As Code Iac

ASecurity

Gate infrastructure with policy-as-code: evaluate the Terraform plan JSON with OPA/Conftest (or Sentinel) to reject misconfigurations — public exposure, wildcard IAM, missing tags, unencrypted resources — before apply, preventively.

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 23, 2026
ai-agentsrailsterraformsecurity

Security analysis

A100/100

Scanned September 23, 2026

npx -y skills add mcorbett51090/RavenClaude --skill policy-as-code-iac --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Policy As Code Iac?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Policy As Code Iac
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mcorbett51090-policy-as-code-iac/badge)](https://www.skillsdirectory.com/skills/mcorbett51090-policy-as-code-iac)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: policy-as-code-iac
description: "Gate infrastructure with policy-as-code: evaluate the Terraform plan JSON with OPA/Conftest (or Sentinel) to reject misconfigurations — public exposure, wildcard IAM, missing tags, unencrypted resources — before apply, preventively."
---

# Policy-as-Code for IaC

## Evaluate the plan
Run `terraform plan -out` -> `terraform show -json` -> evaluate with **OPA/Conftest** (or Sentinel). Fail the pipeline on violations **before apply**.

## Common guardrails
- No public storage / `0.0.0.0/0` to admin ports
- No wildcard IAM (`*` action/resource)
- Required tags present
- Encryption at rest enabled

## Preventive > detective
Blocking the misconfigured plan beats auditing the breached resource later. Route the security **verdict** to `security-engineering`; the gate just enforces the rule.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…