This pipe contains cfn-lint (cfn-python-lint).
If you already have a .cfnlintrc, you just need to the following snippet to the script section of your bitbucket-pipelines.yml file:
script:
- pipe: jacksgt/cfn-lint-pipe:0.1.1
| Variable | Usage |
|---|---|
| TEMPLATES | Cloudformation templates to be checked. Default: [] (will use configuration in .cfnlintrc). |
| DEBUG | Turn on extra debug information. Default: false. |
| FAIL_ON_ERROR | Fail the pipeline when cfn-lint finds errors. Default: true. |
| FAIL_ON_ERROR | Fail the pipeline when cfn-lint reports errors. Default: true. |
| FAIL_ON_WARN | Fail the pipeline when cfn-lint reports warnigns. Default: true. |
| FAIL_ON_INFO | Fail the pipeline when cfn-lint reports infos. Default: true. |
| EXTRA_ARGS | Extra command line arguments to be supplied to cfn-lint. Default: []. |
(*) = required variable.
Advanced example with strict configuration:
script:
- pipe: jacksgt/cfn-lint-pipe:0.1.1
variables:
TEMPLATES:
- cloudformation-template-A.json
- cloudformation-template-B.yaml
FAIL_ON_WARN: "true"
FAIL_ON_INFO: "true"
If you have an issue with this pipe or would like to have a feature added, let me know. Patches are also always welcome.
If you’re reporting an issue, please include:
This software is licensed under Apache 2.0 License.
Content type
Image
Digest
Size
61.1 MB
Last updated
over 6 years ago
docker pull jacksgt/cfn-lint-pipe