macOS
brew install cfn-lintlocal Homebrew formula metadata
安装
brew install cfn-lintlocal Homebrew formula metadata
sudo zypper install python311-cfn-lintopenSUSE Tumbleweed package metadata · python311-cfn-lint · 来源: download.opensuse.org
概览
Validate CloudFormation templates against the CloudFormation spec
历史
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.
安全态势
infrastructure mutation or orchestration signal.
orange 风险 · 中 置信度 · infrastructure
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
.cfnlintrc.cfnlintrc.yaml.cfnlintrc.yml~/.cfnlintrc可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
cfn-lint | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
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 |
| Pulse | updated |
| 依赖 | libyaml, pydantic, python@3.14, rpds-py |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cfn-lint |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-lintpython313-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-lintpython314-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来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.