Automic VaultAutomic Vault

brew

Install cloudformation-guard with Homebrew

Checks CloudFormation templates for compliance using a declarative syntax. Version 3.2.0 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install cloudformation-guard

local Homebrew formula metadata

overview

Package summary

Checks CloudFormation templates for compliance using a declarative syntax

Commands and aliases

  • cfn-guard

history

Project history and usage

AWS CloudFormation Guard, exposed as cfn-guard, is a policy-as-code CLI and rule language for validating structured configuration such as CloudFormation templates. AWS documentation and the upstream repository both describe it as a way to write declarative guard rules and validate JSON/YAML data.

Project history

AWS created the cloudformation-guard repository in 2020 and published an initial preview release shortly afterward. The project gave CloudFormation users a lightweight validation language that could run locally or in CI before templates reached deployment.

Guard's scope widened beyond only CloudFormation templates: the official repository describes validation for JSON- and YAML-formatted data including Kubernetes configurations and Terraform JSON plans, while AWS docs keep CloudFormation as the primary user-facing context.

Adoption history

CloudFormation Guard is adopted by platform, security, and compliance teams that need repeatable checks on infrastructure definitions. It fits naturally into CI because the CLI validates files without requiring cloud-side deployment.

The Homebrew package is comparatively specialized, but the tool has a clearer package-manager role than many AWS side tools: install cfn-guard, run a rules file against templates, and fail the build if policy checks do not pass.

How it is used

Users write Guard rules, then run cfn-guard validate against templates or other structured data. AWS also documents related commands for testing rules and generating rule files from existing templates.

There is no single official user config or credential file location for cfn-guard; rules and data files are supplied explicitly as command inputs.

Why package nerds care

cfn-guard is significant as a compact Rust-based policy CLI in the IaC packaging ecosystem. It competes in the same mental space as linters and policy engines, but its syntax and examples are tailored to CloudFormation users.

For package maintainers, the interesting bit is that cfn-guard is useful even without AWS credentials: it packages cleanly as an offline validator that can run in local pre-commit hooks, CI containers, and developer laptops.

Timeline

  • 2020: Official cloudformation-guard GitHub repository was created.
  • 2020: Initial preview release v0.5.0-beta was published.
  • 2020s: Guard documentation expanded around validation, testing, and rule authoring workflows.
  • 2020s: The repository described validation beyond CloudFormation templates, including Kubernetes and Terraform JSON inputs.

Related projects

  • AWS CloudFormation is the primary template ecosystem Guard was built to validate.
  • CloudFormation Hooks and AWS Config rules are related governance mechanisms with different execution models.
  • cfn-lint is adjacent template validation tooling, while CloudFormation CLI supports extension authoring rather than policy checks.

security posture

Risk level: orange

infrastructure mutation or orchestration signal.

Risk classifier

orange risk · medium confidence · infrastructure

Why

  • infrastructure mutation or orchestration signal

Signals

  • text:cloud

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
cfn-guardcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-25
manager version3.2.0
manager updated
local dataok
upstreamcurrent
latest detected3.2.0

https://github.com/aws-cloudformation/cloudformation-guard

  • infoNo package-manager update timestamp was available.low confidence

install metadata

Package metadata

Package keybrew:cloudformation-guard
Version3.2.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/cloudformation-guard
Homepagehttps://github.com/aws-cloudformation/cloudformation-guard
Repositoryhttps://github.com/aws-cloudformation/cloudformation-guard
Upstream docshttps://docs.aws.amazon.com/cfn-guard/latest/ug/cfn-guard-validate.html
LicenseApache-2.0
Source archivehttps://github.com/aws-cloudformation/cloudformation-guard/archive/refs/tags/3.2.0.tar.gz
Build dependenciesrust
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecloudformation-guard
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment