Cloud Custodian

New
assess
First Added:May 28, 2026 Updated: June 12, 2026

Cloud Custodian (c7n) is an open source rules engine for AWS, Azure, and GCP. YAML policies filter cloud resources and run actions (tag, notify, stop, delete) on a schedule or in response to events. We assess it for org-wide Policy as Code and cost or security guardrails when native cloud policy tools are not enough.

Blurb

Cloud Custodian, also known as c7n, is a rules engine for managing public cloud accounts and resources.

Summary

What it is: Policy-as-data YAML plus a Python runtime, CLI (custodian), and optional serverless modes (Cloud Custodian Org for multi-account).

When to use: replace ad hoc cleanup scripts; enforce tagging, off-hours shutdown, encryption checks, or unused resource removal across accounts; central metrics and reporting on policy runs.

When to skip: small single-account shops covered by native Config or Policy; teams already committed to OPA/Rego (Conftest, Gatekeeper) for the same rules; no ops capacity to tune false positives.

Pairs with: Terraform provisioning plus Custodian enforcement in live accounts; Shift Left IaC scans on PRs, Custodian on deployed resources.

Details

TopicNotes
Policy shapepolicies: list with resource, filters, actions
Modespull (cron), cloudtrail/event-driven, periodic
Extensibilitymailer, c7n-org for org-wide rollout

Practices: start with notify-only actions; dry-run in staging accounts; version policies in git like application code.

References