All Projects → awslabs → serverless-rules

awslabs / serverless-rules

Licence: MIT-0 license
Compilation of rules to validate infrastructure-as-code templates against recommended practices for serverless applications.

Programming Languages

go
31211 projects - #10 most used programming language
python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to serverless-rules

Cfn Python Lint
CloudFormation Linter
Stars: ✭ 1,770 (+402.84%)
Mutual labels:  cloudformation, cfn-lint
bora
A Ruby command line tool and rake tasks for working with cloudformation stacks and cfndsl
Stars: ✭ 18 (-94.89%)
Mutual labels:  cloudformation
go-localstack
Go Wrapper for using localstack
Stars: ✭ 56 (-84.09%)
Mutual labels:  cloudformation
serverless-cloudformation-sub-variables
Serverless framework plugin for easily supporting AWS CloudFormation Sub intrinsic function variables
Stars: ✭ 25 (-92.9%)
Mutual labels:  cloudformation
ecs-mesh-workshop
This handy workshop help the customers to quickly launch ECS with service mesh support on top of mixed type of instance in all commercial regions (include China), and also provides hands-on tutorials with best practices. It can be customized easily as per need.
Stars: ✭ 17 (-95.17%)
Mutual labels:  cloudformation
aws-cloudformation-resource-providers-cloudformation
The CloudFormation Resource Provider Package For AWS CloudFormation
Stars: ✭ 42 (-88.07%)
Mutual labels:  cloudformation
aloisius
A Python library to create/update/delete AWS CloudFormation stacks in parallel
Stars: ✭ 16 (-95.45%)
Mutual labels:  cloudformation
typeformation
Type Cloudformation templates with pleasure!
Stars: ✭ 16 (-95.45%)
Mutual labels:  cloudformation
aws-cfn-custom-resource-lambda-edge
🏗 AWS CloudFormation custom resource that allows deploying Lambda@Edge from any region
Stars: ✭ 19 (-94.6%)
Mutual labels:  cloudformation
nfscan
NFScan is a free, open-source software, available to non-profit organizations to receive donations effectively.
Stars: ✭ 85 (-75.85%)
Mutual labels:  cloudformation
aws-node-custom-user-pool
Serverless AWS Cognito Custom User Pool Example
Stars: ✭ 15 (-95.74%)
Mutual labels:  cloudformation
Hands-On-Serverless-Applications-with-Go
Hands-On Serverless Applications with Go, published by Packt.
Stars: ✭ 92 (-73.86%)
Mutual labels:  cloudformation
aws-cloudformation-cognito-identity-pool
A Lambda-backed Custom Resource for a Cognito Identity Pool in CloudFormation
Stars: ✭ 35 (-90.06%)
Mutual labels:  cloudformation
aws-cfn-ses-domain
AWS CloudFormation resources for Amazon SES domain and email identities
Stars: ✭ 45 (-87.22%)
Mutual labels:  cloudformation
cloudformation-checklist
The checklist for meticulous AWS DevOps engineers
Stars: ✭ 68 (-80.68%)
Mutual labels:  cloudformation
cfoo
CloudFormation master
Stars: ✭ 22 (-93.75%)
Mutual labels:  cloudformation
Humidifier
AWS Cloudformation using C#
Stars: ✭ 45 (-87.22%)
Mutual labels:  cloudformation
LambdaSharpTool
Serverless .NET on AWS - λ# is a CLI and Framework for Rapid Application Development using .NET on AWS
Stars: ✭ 99 (-71.87%)
Mutual labels:  cloudformation
takomo
Organize, parameterize and deploy your CloudFormation stacks
Stars: ✭ 27 (-92.33%)
Mutual labels:  cloudformation
CloudGenesis
Automation for deploying & deleting CloudFormation stacks sourced from a Git repo
Stars: ✭ 34 (-90.34%)
Mutual labels:  cloudformation

Serverless Rules

The Serverless Rules are a compilation of rules to validate infrastructure as code template against recommended practices. This currently provides a module for cfn-lint and a plugin for tflint.

You can use those rules to get quick feedback on recommended practices while building a serverless application, as part of automated code review process, or as guardrails before deploying to production.

📜Documentation | 🐍PyPi

PUBLIC PREVIEW: this project is currently in public preview to get feedback from the serverless community. APIs, tools, and rules might change between the beginning of public preview and version 1.

You can find a list of currently supported rules in the documentation.

Usage guide

cfn-lint

To get started with Serverless Rules and cfn-lint, install cfn-lint-serverless module: pip install cfn-lint cfn-lint-serverless

You can now instruct cfn-lint to use Serverless Rules module installed previously via --append-rules or -a for short:

cfn-lint my_template.yaml -a cfn_lint_serverless.rules

You can try with a Serverless Application Model (SAM) example provided in this repository by running:

cfn-lint examples/sam/template.yaml -a cfn_lint_serverless.rules

tflint

This plugin depends on tflint. If you use tflint version 0.29 or newer, you can leverage the tflint --init command to automatically install the plugin. Otherwise, you will need to download the tflint-ruleset-aws-serverless binary corresponding to your system from the releases page.

You can enable the Serverless Rules plugin by adding a plugin section in the .tflint.hcl file in your project:

plugin "aws-serverless" {
  enabled = true
  version = "0.3.2"
  source = "github.com/awslabs/serverless-rules"
}

Contributing

See CONTRIBUTING to learn how to contribute to this project.

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].