Skip to main content

Extendable CFN rules

Project description

Additional CloudFormation Rules

Implemented rules:

E9001 Tags Rule:

It checks whether resources have the desired tags. Example:

templates:
    - tests/resources/templates/**/*.yaml
append_rules:
    - awsjavakit_cfn_rules

configure_rules:
    E9001:
        expected_tags:
            - expectedTag

E9002 SQS Long polling rule:

It checks whether an SQS queue has been configured to perform long polling to avoid invoking targets with empty responses. See https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-short-and-long-polling.html

Suggested Usage:

Create a configuration file .cfnlintrc like the following:

        templates:
          - template.yaml
        append_rules:
            - awsjavakit_cfn_rules
        
        configure_rules:
            E9001:
                expected_tags:
                    - expectedTag


Place the configuration file in the same folder as your template (template.yaml).
Afterwards, run the following commands

        python -m venv .cfn-lint-venv
        . .cfn-lint-venv/bin activate
        pip install cfn-lint
        pip install awsjavakit-cfn-rules
        

Finally run cfn-lint to run the cfn-lint.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

awsjavakit_cfn_rules-0.0.35.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

awsjavakit_cfn_rules-0.0.35-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

Details for the file awsjavakit_cfn_rules-0.0.35.tar.gz.

File metadata

  • Download URL: awsjavakit_cfn_rules-0.0.35.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for awsjavakit_cfn_rules-0.0.35.tar.gz
Algorithm Hash digest
SHA256 dc9619d79859e5da4947ed3feee7ae21e36b1a7d0f921e68b340c2b9e4c51116
MD5 1135d7e70cd9e9c6c1e83db56858ae3b
BLAKE2b-256 bad14b791b31b008881d30cdc4d7cbb5197c83f787f2aa8126766ac408a2a102

See more details on using hashes here.

Provenance

The following attestation bundles were made for awsjavakit_cfn_rules-0.0.35.tar.gz:

Publisher: publish.yml on awsjavakit/awsjavakit-cfn-rules

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file awsjavakit_cfn_rules-0.0.35-py3-none-any.whl.

File metadata

File hashes

Hashes for awsjavakit_cfn_rules-0.0.35-py3-none-any.whl
Algorithm Hash digest
SHA256 b54d607913591ee746c156a512ca292feb95598047ec485679dcae3a0ba2c58c
MD5 02a72dee9bd6f0115cfd79c540740b41
BLAKE2b-256 27d8b98e9add4c4a5af02b59cd636dfe0d1ab3c251233bd82a784ed2bf4ef201

See more details on using hashes here.

Provenance

The following attestation bundles were made for awsjavakit_cfn_rules-0.0.35-py3-none-any.whl:

Publisher: publish.yml on awsjavakit/awsjavakit-cfn-rules

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page