Skip to main content

alb-lint

Lint AWS Application Load Balancers for common misconfigurations.

Install

pip install alb-lint

From source:

pip install -e .

60-second demo

# Lint one ALB
alb-lint --load-balancer-arn arn:aws:elasticloadbalancing:us-east-1:123456789012:loadbalancer/app/my-alb/abc \
  --profile myprofile --region us-east-1

# Lint all ALBs in the region
alb-lint --all --profile myprofile --region us-east-1

# JSON output
alb-lint --all --json --region us-east-1

Example output:

alb-lint: checked 1 load balancer(s)
  [WARN] no_https_listener: my-alb: no HTTPS (443) listener.
  [PASS] host_headers_unique: my-alb: no duplicate Host header rules on listener 80.
  [WARN] zero_targets: my-alb: target group 'tg-app' has 0 registered targets.
Result: OK (no FAIL findings)

Exit code 0 if there are no FAIL findings; 1 if any FAIL (e.g. duplicate Host header rules).

What it checks

Finding Severity
No HTTPS (443) listener WARN
Duplicate Host header conditions across rules (same listener) FAIL
Target group with 0 registered targets WARN
Unhealthy targets WARN

Publishing to PyPI

pip install build twine
python -m build
twine upload dist/*

Or push a v* tag; GitHub Actions can publish via trusted publishing (see .github/workflows/publish.yml).

License

MIT

Release files for alb-lint 0.1.0

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

Source distribution (sdist)

Source distribution for alb-lint 0.1.0
File Size Uploaded
alb_lint-0.1.0.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for alb-lint 0.1.0
File Interpreter ABI Platform
alb_lint-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.9 kB

Release files / alb_lint-0.1.0.tar.gz

Download URL alb_lint-0.1.0.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
32510d3b8363c4fd0ca682c9932e906cdb4bac49df80b35c25c3c1ff5b421db3
BLAKE2b-256 checksum
How to use checksums
41c21b33edd1548e5cfe5d7fe27ffbedfb4f2fb042ca326833e7f35a4ade4f56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / alb_lint-0.1.0-py3-none-any.whl

Download URL alb_lint-0.1.0-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b9cd490e72b98ddb68573f5414ac2a247baeb024b0522310a9a49c4bc446e2d
BLAKE2b-256 checksum
How to use checksums
15a75b1619d2a6dfb150ef317fa673d48470738d339988ad49c470635fb508ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

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