🍺 BREW Explorer

← all formulae

cfn-lint

brew install cfn-lint v1.51.5 MIT-0

Python linter that validates AWS CloudFormation YAML/JSON templates against resource schemas and best practices.

Why you might care

Essential for catching CloudFormation errors before deployment—validates resource properties, intrinsic functions, and parameter types against the official AWS spec. Official AWS tool with deep knowledge of CloudFormation semantics; integrates into CI/CD pipelines and editor workflows.

Categories

Alternatives

checkov cdk cloudformation-guard
3.7k
30-day installs · #734
10.3k
90-day · #799
40.3k
365-day · #764
2.6k
★ GitHub stars · updated today

Runtime dependencies

GitHub topics

aws aws-cloudformation cfn-lint cloudformation linter

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "checkov",
    "cdk",
    "cloudformation-guard"
  ],
  "build_dependencies": [],
  "categories": [
    "linter",
    "aws"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [
    "libyaml",
    "pydantic",
    "python@3.14",
    "rpds-py"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Validate CloudFormation templates against the CloudFormation spec",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:36:16+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "cfn-lint",
  "github_default_branch": "main",
  "github_last_commit_at": "2026-06-20T09:09:27Z",
  "github_readme_excerpt": "# AWS CloudFormation Linter\n\n\u003cimg alt=\"[cfn-lint logo]\" src=\"https://github.com/aws-cloudformation/cfn-python-lint/blob/main/logo.png?raw=true\" width=\"150\" align=\"right\"\u003e\n\n[![Testing](https://github.com/aws-cloudformation/cfn-lint/actions/workflows/ci-branch.yaml/badge.svg)](https://github.com/aws-cloudformation/cfn-lint/actions/workflows/ci-branch.yaml)\n[![PyPI version](https://badge.fury.io/py/cfn-lint.svg)](https://badge.fury.io/py/cfn-lint)\n[![PyPI downloads](https://pepy.tech/badge/cfn-lint/week)](https://pypistats.org/packages/cfn-lint)\n[![PyPI downloads](https://pepy.tech/badge/cfn-lint/month)](https://pypistats.org/packages/cfn-lint)\n[![codecov](https://codecov.io/gh/aws-cloudformation/cfn-lint/branch/main/graph/badge.svg)](https://codecov.io/gh/aws-cloudformation/cfn-python-lint)\n[![Discord Shield](https://img.shields.io/discord/981586120448020580?logo=discord)](https://discord.gg/KENDm6DHCv)\n\nValidate AWS CloudFormation yaml/json templates against the [AWS CloudFormation resource provider schemas](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-type-schemas.html) and additional checks. Includes checking valid values for resource properties and best practices.\n\n### Warning\n\nThis is an attempt to provide validation for AWS CloudFormation templates properties and\ntheir values. For values things can get pretty complicated (mappings, joins, splits,\nconditions, and nesting those functions inside each other) so it\u0027s a best effort to\nvalidate those values but the promise is to not fail if we can\u0027t understand or translate\nall the things that could be going on.\n\n## Contribute\n\nWe encourage you to contribute to `cfn-lint`! Please check out the [Contributing Guidelines](https://github.com/aws-cloudformation/cfn-lint/blob/main/CONTRIBUTING.md) for more information on how to proceed.\n\n## Community\n\nJoin us on Discord! Connect \u0026 interact with CloudFormation developers \u0026\nexperts, find channels to discuss and get help for cfn-lint, CloudFormation re",
  "github_repo": "aws-cloudformation/cfn-lint",
  "github_stars": 2623,
  "github_topics": [
    "aws",
    "aws-cloudformation",
    "cfn-lint",
    "cloudformation",
    "linter"
  ],
  "homepage": "https://github.com/aws-cloudformation/cfn-lint/",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 3657,
  "installs_365d": 40310,
  "installs_90d": 10341,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT-0",
  "llm_generated_at": "2026-06-20T23:46:42+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "cfn-lint",
  "oldnames": [],
  "one_liner": "Python linter that validates AWS CloudFormation YAML/JSON templates against resource schemas and best practices.",
  "optional_dependencies": [],
  "rank_30d": 734,
  "rank_365d": 764,
  "rank_90d": 799,
  "raw_hash": "16f2b88e678e4590",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/c/cfn-lint.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "1.51.5",
  "versioned_formulae": [],
  "why_use_this": "Essential for catching CloudFormation errors before deployment\u2014validates resource properties, intrinsic functions, and parameter types against the official AWS spec. Official AWS tool with deep knowledge of CloudFormation semantics; integrates into CI/CD pipelines and editor workflows."
}