cfn-python-lint VS cloudformation-guard

Compare cfn-python-lint vs cloudformation-guard and see what are their differences.

cfn-python-lint

CloudFormation Linter (by aws-cloudformation)

cloudformation-guard

Guard offers a policy-as-code domain-specific language (DSL) to write rules and validate JSON- and YAML-formatted data such as CloudFormation Templates, K8s configurations, and Terraform JSON plans/configurations against those rules. Take this survey to provide feedback about cfn-guard: https://amazonmr.au1.qualtrics.com/jfe/form/SV_bpyzpfoYGGuuUl0 (by aws-cloudformation)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
cfn-python-lint cloudformation-guard
20 20
2,334 1,219
0.9% 1.9%
9.1 8.6
6 days ago 7 days ago
Python Rust
MIT No Attribution Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

cfn-python-lint

Posts with mentions or reviews of cfn-python-lint. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-06.
  • Managing low-code environments with AWS CloudFormation and Azure Resource Manager
    3 projects | dev.to | 6 Feb 2023
    Automate testing and validation: Before deploying your templates, it's important to test and validate them to ensure that they will work as expected. Use tools like AWS CloudFormation Linter and Azure Resource Manager Template Tester to automate this process.
  • Alternatives to Terraform
    5 projects | /r/devops | 27 Jan 2023
    Honestly I've had good luck writing clean Cloud Formation. It's AWS only. But Nested Stacks can help keep things pretty clean and tools like cfn-lint do a pretty good job of preventing you from going too crazy with spaghetti code. Additionally, as it's all json/yaml, you can parse it to look for common problems your organization wants to enforce. So you can ensure things like specific tags your roles/vpc etc..., or usage of an "approved" set of AMI, requiring an EKS/RDS cluster to be split across availability zones; they're all just a test in your CI pipeline away.
  • Creating a Multi-Account CI/CD Pipeline with AWS CodePipeline
    2 projects | dev.to | 6 Nov 2022
    CodeBuild will run a linting check against the CloudFormation Template using cfn-lint and will then run cfn-nag to check for patterns that indicate insecure resources within the CloudFormation template.
  • App with self-contained infrastructure on AWS
    6 projects | dev.to | 2 Oct 2022
    A linter for our AWSCloudformation stack called cfn-lint
  • how did you get good at iac-cloudformation
    2 projects | /r/devops | 24 Sep 2022
    cfn-lint and cfn_nag or other tools of that nature to check as you write so you don't need to continually try to deploy only to find that you've done something dumb.
  • Validating cloudFormation templates
    3 projects | /r/aws | 7 Aug 2022
    https://github.com/aws-cloudformation/cfn-lint as mentioned will do what you've explicitly called-out.
    3 projects | /r/aws | 7 Aug 2022
    I use cfn-lint for this. Works great in a CI pipeline for example, and goes much further than just checking validity: it also checks all manner of good style etc…
    2 projects | /r/devops | 7 Aug 2022
  • CloudFormation locally
    2 projects | /r/aws | 6 Jun 2022
    cfn-lint can do basic validation and rule-based linting. Highly recommend using it even if it doesn't solve your problem.
  • Source Control your AWS CloudFormation templates with GitHub
    3 projects | dev.to | 19 May 2022
    To help validate your AWS CloudFormation templates you can use a tool called cfn-lint.

cloudformation-guard

Posts with mentions or reviews of cloudformation-guard. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-16.
  • Pull Request Reporting with CDK-Validator-CFNGuard and Azure DevOps
    2 projects | dev.to | 16 Feb 2024
    If you now use these services to fix the infrastructure findings, a drift occurs that is not always easy to fix. It is better to check for possible problems before the actual deployment. This approach is called “Shift-Left”. This can be done with the package cdk-validator-cfnguard. It's based on the CloudFormation Guard package.
  • Write AWS Config rules using cfn-guard
    2 projects | dev.to | 8 Feb 2023
    AWS Config rules allow you to determine if a resource is compliant or not. Previously when you wanted to do custom checks you needed to write AWS Lambda functions to validate the configuration of a resource. Since Aug 2, 2022 you have the ability to use cfn-guard rules to achieve the same.
  • This is how you can test your cfn-guard rules
    2 projects | dev.to | 16 Dec 2022
    In my previous blog, How do you prove that your infrastructure is compliant. I explained how you can prove your infrastructure is compliant using CloudFormation Guard. But, how do you write those rules? And even more important, how do you test your rules? If you look at the repository CloudFormation Guard. You will notice that the project itself offers a testing framework. Alright! Let’s build a ruleset and write some tests for it!
  • How do you prove that your infrastructure is compliant
    2 projects | dev.to | 15 Dec 2022
    When you use CloudFormation Guard in combination with CodeBuild Reports it makes it easier to see what rules have failed and keeps a history. When you have a solid set of compliance rules. It gives you a report that you can use to prove that the build of the infrastructure was compliant. You are also able to prevent non-compliant code rollout in production.
  • Make your life easier using Makefiles
    2 projects | dev.to | 13 Dec 2022
    cloudformation-guard.
  • Uncomplicating cloud Security — Foundations (Part 1)
    2 projects | dev.to | 28 Nov 2022
    AWS CloudFormation: can help with deploying compliant stacks. You can make sure that a stack is compliant by using AWS CloudFormation guard.
  • OPA Rego is ridiculously confusing - best way to learn it?
    6 projects | /r/kubernetes | 20 Sep 2022
    See https://github.com/aws-cloudformation/cloudformation-guard
  • How we use AWS Config and Security Hub for Cloud Governance
    3 projects | dev.to | 17 Aug 2022
    Currently, we're also exploring the brand new AWS Config rules backed by guard. Now you can write rules using guard which is a policy-as-code language. Here is some example of a Guard Rule which we are testing.
  • Validating cloudFormation templates
    3 projects | /r/aws | 7 Aug 2022
    https://github.com/aws-cloudformation/cloudformation-guard is also very useful, but more so when you want to keep your templates consistent to standards.
  • CloudFormation locally
    2 projects | /r/aws | 6 Jun 2022

What are some alternatives?

When comparing cfn-python-lint and cloudformation-guard you can also consider the following projects:

cfn_nag - Linting tool for CloudFormation templates

aws-codebuild-docker-images - Official AWS CodeBuild repository for managed Docker images http://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref.html

terraform-aws-icons - Annotate Terraform graphs with AWS icons.

aws-toolkit-vscode - Amazon Q, CodeWhisperer, CodeCatalyst, Local Lambda debug, SAM/CFN syntax, ECS Terminal, AWS resources

rain - A development workflow tool for working with AWS CloudFormation.

delta - A syntax-highlighting pager for git, diff, and grep output

aws-iam-generator - Generate Multi-Account IAM users/groups/roles/policies from a simple YAML configuration file and Jinja2 templates.

terraforming - Export existing AWS resources to Terraform style (tf, tfstate) / No longer actively maintained

leaf - A versatile and efficient proxy framework with nice features suitable for various use cases.

saml2aws - CLI tool which enables you to login and retrieve AWS temporary credentials using a SAML IDP

terratag - Terratag is a CLI tool that enables users of Terraform to automatically create and maintain tags across their entire set of AWS, Azure, and GCP resources

cfn-diagram - CLI tool to visualise CloudFormation/SAM/CDK stacks as visjs networks, draw.io or ascii-art diagrams.