Cloud Custodian (c7n) applies YAML policies to query, filter, and act on cloud resources across major providers. It supports real-time compliance, tagging, cost controls, and unified reporting.
Overview
Cloud Custodian is a rules engine for managing public cloud accounts and resources. Operators define policies in YAML to enforce security settings, tag rules, and cost optimization such as garbage collection and off-hours shutdowns.
Policies target specific resource types with a vocabulary of filters and actions. You can dry-run policies, run them on a schedule, or integrate with provider serverless event sources for near real-time enforcement.
The tool consolidates many ad-hoc organization scripts into one workflow. It reports metrics on matched resources and can write structured outputs to object storage.
Custodian supports AWS, Azure, and GCP, with Kubernetes and additional clouds in beta. It can also evaluate infrastructure-as-code assets for shift-left feedback in developer workflows.
Key features
- YAML policy definitions
- Multi-cloud resource actions
- Dry-run policy preview
- Serverless event integration
- Infrastructure-as-code checks
- Multi-account execution
- Unified metrics and reporting
- Rich filter and action library
Use cases
- Cloud security compliance
- Tag policy enforcement
- Unused resource cleanup
- Off-hours cost savings
- Governance-as-code in CI