Automic VaultAutomic Vault

brew

使用 Homebrew, zypper 安装 cfn-lint

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install cfn-lint

local Homebrew formula metadata

Linux

openSUSE zypper已验证 · 92%
sudo zypper install python311-cfn-lint

openSUSE Tumbleweed package metadata · python311-cfn-lint · 来源: download.opensuse.org

概览

软件包摘要

Validate CloudFormation templates against the CloudFormation spec

命令和别名

  • cfn-lint

历史

项目历史与用法

cfn-lint is the AWS CloudFormation linter for validating JSON and YAML templates against CloudFormation resource provider schemas and additional best-practice checks. It is a Python command-line tool, but its real job is to keep infrastructure-as-code feedback local, scriptable, and close to the editor or CI system.

项目历史

The official GitHub repository was created under the aws-cloudformation organization in April 2018 and describes the tool as validating CloudFormation templates against AWS CloudFormation resource provider schemas and extra checks. Its README also documents support for AWS Serverless Application Model templates by transforming SAM before linting.

The project has accumulated a large rule set, optional graph, JUnit, and SARIF output dependencies, editor integrations, a GitHub Action, and frequent schema-update releases. That release pattern reflects CloudFormation itself: the linter must track AWS service and resource schema changes continuously rather than behaving like a static syntax checker.

采用历史

Official installation docs include pip, Homebrew, Docker, and editor integrations for Atom, Emacs, Vim or Neovim, Sublime, Visual Studio Code, and IntelliJ IDEA. The README also links a GitHub Marketplace action and an online demo, showing adoption across local development and CI workflows.

The package metadata in this batch shows cfn-lint packaged for Homebrew and openSUSE, while the official README shows PyPI as the primary distribution channel. For CloudFormation users, it became the expected preflight check before deploying templates.

使用方式

Typical use is `cfn-lint template.yaml`, optionally with multiple templates, shell globs, regions, output formats, custom rules, ignored checks, or SARIF and JUnit outputs for CI. The documented configuration files are `.cfnlintrc`, `.cfnlintrc.yaml`, `.cfnlintrc.yml`, and `~/.cfnlintrc`.

cfn-lint can update or patch CloudFormation specs, build DOT graphs, validate against CloudFormation Registry schemas, and tune exit-code severity. It is best understood as a local policy and schema feedback tool for CloudFormation authors, not as an AWS deployment client.

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

For package nerds, cfn-lint is notable because it packages a fast-moving cloud provider schema surface into an installable CLI. The frequent official releases that update CloudFormation schemas are the interesting bit: package freshness directly affects whether the linter recognizes new AWS resource types and properties.

It also sits at the intersection of several packaging channels: Python packaging for the upstream tool, Homebrew for macOS-heavy infrastructure teams, containers for pinned CI runs, and editor plugins for live feedback.

时间线

  • 2018: The aws-cloudformation/cfn-lint repository is created on GitHub.
  • 2026: Official releases continue to publish frequent CloudFormation schema updates.
  • 2026: The README documents Python 3.10 through 3.14 support, optional extras, Homebrew installation, Docker usage, editor integrations, and CI outputs.

Related projects

  • AWS CloudFormation provides the template language and resource provider schemas cfn-lint validates against.
  • AWS Serverless Application Model templates are transformed before linting, according to the official README.
  • CloudFormation Guard and CloudFormation Registry are adjacent AWS CloudFormation tools referenced by the project's community and options.

安全态势

风险级别:orange

infrastructure mutation or orchestration signal.

风险分类器

orange 风险 · 中 置信度 · infrastructure

原因

  • infrastructure mutation or orchestration signal

信号

  • text:cloud

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 4 个运行时依赖。

建议审查

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

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
.cfnlintrc.cfnlintrc.yaml.cfnlintrc.yml~/.cfnlintrc

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

页面生成时间2026-07-08
管理器版本1.52.1
管理器更新时间2026-06-30
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/aws-cloudformation/cfn-lint

安装元数据

软件包元数据

软件包键brew:cfn-lint
版本1.52.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/cfn-lint
主页https://github.com/aws-cloudformation/cfn-lint/
仓库https://github.com/aws-cloudformation/cfn-lint
上游文档https://github.com/aws-cloudformation/cfn-lint#readme
许可证MIT-0
源码归档https://files.pythonhosted.org/packages/ed/67/6e8416db23ac67854c66123dd97d1758d2dd0ff2603653a97d9dd872bed5/cfn_lint-1.52.1.tar.gz
最后更新2026-06-30T21:29:12Z
Pulseupdated
依赖libyaml, pydantic, python@3.14, rpds-py
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

zypper95%

python311-cfn-lint 1.47.0-1.2

Tool to checks cloudformation for practices and behaviour

https://github.com/aws-cloudformation/cfn-python-lint

sudo zypper install python311-cfn-lint
  • License: MIT
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: python-cfn-lint
  • 15 依赖
  • 4 提供
  • normalized package name match
  • 匹配方式:Cfn Lint
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: python311-cfn-lint from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

python313-cfn-lint 1.47.0-1.2

Tool to checks cloudformation for practices and behaviour

https://github.com/aws-cloudformation/cfn-python-lint

sudo zypper install python313-cfn-lint
  • License: MIT
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: python-cfn-lint
  • 15 依赖
  • 5 提供
  • normalized package name match
  • 匹配方式:Cfn Lint
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: python313-cfn-lint from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

python314-cfn-lint 1.47.0-1.2

Tool to checks cloudformation for practices and behaviour

https://github.com/aws-cloudformation/cfn-python-lint

sudo zypper install python314-cfn-lint
  • License: MIT
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: python-cfn-lint
  • 15 依赖
  • 4 提供
  • normalized package name match
  • 匹配方式:Cfn Lint
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: python314-cfn-lint from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

此页面由 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 configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment