AWS CloudFormation Linter

AWS CloudFormation Linter

Community Analyzer

Categories

Configuration-as-code

Latest version

0.83.0

Updated on

Mar 6, 2024


Total issues

157

Sample configuration

version = 1

[[analyzers]]
name = "cfn-lint"
type = "community"

CI snippets


.circleci/config.yml
Providers
version: 2.1

jobs:
  run-cfn-lint:
    docker:
      - image: cimg/python:3.12
    steps:
      - checkout
      - run:
          name: Install cfn-lint
          command: |
            python -m pip install --upgrade pip
            pip3 install cfn-lint
      - run:
          name: Run cfn-lint
          command: |
            cfn-lint -t ./**/*.yaml -f sarif > cfn-lint.sarif || true
      - run:
          name: Upload SARIF report to DeepSource
          command: |
            # Install the DeepSource CLI
            curl https://deepsource.io/cli | sh
            # Send the report to DeepSource
            ./bin/deepsource report --analyzer cfn-lint --analyzer-type community --value-file ./cfn-lint.sarif

workflows:
  run-cfn-lint-workflow:
    jobs:
      - run-cfn-lint

Stats


Anti-pattern

157