Automic VaultAutomic Vault

brew

使用 Homebrew 安装 cloudformation-guard

查看 cloudformation-guard 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install cloudformation-guard

local Homebrew formula metadata

概览

软件包摘要

Checks CloudFormation templates for compliance using a declarative syntax

命令和别名

  • cfn-guard

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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.

安全态势

风险级别:orange

infrastructure mutation or orchestration signal.

风险分类器

orange 风险 · 中 置信度 · infrastructure

原因

  • infrastructure mutation or orchestration signal

信号

  • text:cloud

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
cfn-guardcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本3.2.0
管理器更新时间
本地数据OK
上游当前
检测到的最新版本3.2.0

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

  • 信息No package-manager update timestamp was available.低 置信度

安装元数据

软件包元数据

软件包键brew:cloudformation-guard
版本3.2.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/cloudformation-guard
主页https://github.com/aws-cloudformation/cloudformation-guard
仓库https://github.com/aws-cloudformation/cloudformation-guard
上游文档https://docs.aws.amazon.com/cfn-guard/latest/ug/cfn-guard-validate.html
许可证Apache-2.0
源码归档https://github.com/aws-cloudformation/cloudformation-guard/archive/refs/tags/3.2.0.tar.gz
构建依赖rust
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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