cloudformation-guard
« Back to VersTracker
Description:
Checks CloudFormation templates for compliance using a declarative syntax
Type: Formula  |  Latest Version: 3.1.12@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Security
Tags: cloudformation compliance security devops policy-as-code aws
Install: brew install cloudformation-guard
About:
AWS CloudFormation Guard is an open-source, declarative policy-as-code tool that validates CloudFormation templates and configuration files against defined rules. It helps enforce organizational best practices, security standards, and compliance requirements before infrastructure deployment. The tool uses a simple, domain-specific language to express policies, making it easy to audit and maintain infrastructure governance.
Key Features:
  • Declarative policy-as-code language for defining rules
  • Pre-deployment validation of CloudFormation and Terraform templates
  • Supports both JSON and YAML input formats
  • Integration capabilities for CI/CD pipelines
  • Comprehensive rule library and custom policy creation
Use Cases:
  • Enforcing security best practices in CloudFormation templates
  • Validating infrastructure changes in CI/CD pipelines
  • Ensuring compliance with organizational standards
  • Preventing deployment of non-compliant resources
Alternatives:
  • cfn-lint – cfn-lint focuses on syntax and template quality, while Guard specializes in policy enforcement and compliance rules
  • OPA (Open Policy Agent) – OPA is a general-purpose policy engine requiring more setup, while Guard is purpose-built for CloudFormation with a simpler DSL
  • tfsec – tfsec is Terraform-specific security scanner, whereas Guard is designed for CloudFormation templates
License: Apache-2.0
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, sonoma, ventura, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Sep 15, 2025 10:02am 0 VERSION_BUMP fdc90c44
Sep 15, 2025 1:11am 0 VERSION_BUMP 746992a2
Dec 26, 2024 2:24pm 0 VERSION_BUMP aabf3e48
Dec 19, 2024 5:45am 0 VERSION_BUMP 23b7241f
Dec 19, 2024 12:30am 0 VERSION_BUMP 6ecc9786
Nov 25, 2024 11:46pm 0 VERSION_BUMP 5c2ed479