Skip to main content

cfn-lint-serverless

Ruleset for cfn-lint to validate CloudFormation templates for serverless applications against recommended best practices.

Installation

pip install cfn-lint cfn-lint-serverless

Usage

Run cfn-lint with the serverless rules module:

cfn-lint template.yaml -a cfn_lint_serverless.rules

Supported Rules

This module provides validation rules for various AWS serverless resources:

  • Lambda Functions
  • API Gateway
  • Step Functions
  • SQS
  • SNS
  • EventBridge
  • AppSync

For a detailed list of rules, refer to the documentation.

Examples

Try it with the examples provided in the repository:

# For SAM templates
cfn-lint examples/sam/template.yaml -a cfn_lint_serverless.rules

# For Serverless Framework templates
cfn-lint examples/serverless-framework/template.yaml -a cfn_lint_serverless.rules

Contributing

Contributions are welcome! Please see the CONTRIBUTING.md file for guidelines.

License

This project is licensed under the MIT-0 License. See the LICENSE file for details.

Metadata

Release files for cfn_lint_serverless 0.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cfn_lint_serverless 0.3.5
File Size Uploaded
cfn_lint_serverless-0.3.5.tar.gz 71.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cfn_lint_serverless 0.3.5
File Interpreter ABI Platform
cfn_lint_serverless-0.3.5-py3-none-any.whl Python 3 none any Details

Total release size: 83.1 kB

Release files / cfn_lint_serverless-0.3.5.tar.gz

Download URL cfn_lint_serverless-0.3.5.tar.gz
Size 71.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7021432825694abe3f4fb217cbd447f6edfa7b696aced6bfb1008d9a21b72147
BLAKE2b-256 checksum
How to use checksums
630224d28cec6678727dd2cc91b7193e9152d904597bd3829b6e5caa62cf65c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / cfn_lint_serverless-0.3.5-py3-none-any.whl

Download URL cfn_lint_serverless-0.3.5-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf07e6702c2d5c8ea6a448c5d87573310627f9baf6c4f98fefff14c6af158a26
BLAKE2b-256 checksum
How to use checksums
799c45aa13ddf71c819501c27eb143ef8779da743d92d619fb1c88a1a13f13bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.3.5 This release

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page