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)
| File | Size | Uploaded | |
|---|---|---|---|
| cfn_lint_serverless-0.3.5.tar.gz | 71.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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}
|