django-ebhealthcheck
Django app to add an instance's public IP to ALLOWED_HOSTS for Elastic Beanstalk's health check system
Decision gist · record as of 2026-08-14
Yes, if you are running Django on AWS Elastic Beanstalk and experiencing health check failures due to ALLOWED_HOSTS validation. It solves a narrow, well-defined problem with minimal dependencies and no security vulnerabilities. The dormant maintenance status is not a concern for a stable, single-purpose utility. Install it if this is your deployment model; skip it otherwise.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Django to be installed and configured; IMDSv2 support requires version 2.0.0 or higher (use version 1.x for IMDSv1-only environments).
- Installation is straightforward with low friction—a single wheel dependency on requests.
- The package is dormant (last release August 2022, last commit October 2023) but marked Production/Stable; it solves a narrow, stable problem unlikely to require frequent updates.
License · maintenance · safety
BSD (permissive) — BSD permissive license imposes no significant restrictions; you may use, modify, and distribute the package freely in commercial and private projects.
last release 2022-08-22 (1453 days) · last repo commit 2023-10-18 · 35 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 80,208 downloads/mo, #14,309 on PyPI
Alternatives
Verify before relying
pip install django-ebhealthcheck
# In settings.py INSTALLED_APPS:
INSTALLED_APPS = [
...
'ebhealthcheck.apps.EBHealthCheckConfig',
...
]- Whether the package works with current Django versions (latest release was August 2022).
- Compatibility with Python versions beyond what the fact sheet specifies.
What it is and what it does
django-ebhealthcheck is a Django application that solves a specific problem with AWS Elastic Beanstalk's health check system. When Elastic Beanstalk performs health checks on load-balanced instances, it uses the instance's public IP as the request's host header. By default, Django rejects requests with unrecognized host headers and returns a 400 Bad Request error, causing health checks to fail. This package intercepts that flow at application startup and dynamically adds the instance's public IP to Django's ALLOWED_HOSTS setting, allowing health checks to succeed.
The package depends only on requests and installs as a simple Django app configuration. Version 2.0.0 and later support IMDSv2 (the newer AWS metadata service); earlier versions support IMDSv1. It is marked Production/Stable but has been dormant since mid-2022, suggesting the problem it solves is stable and rarely needs changes.
Use it for
- Running a Django application on AWS Elastic Beanstalk without manually managing ALLOWED_HOSTS for each instance's public IP.
- Preventing health check failures caused by Django rejecting requests with unrecognized host headers in load-balanced environments.
- Automating host validation on Elastic Beanstalk deployments to reduce configuration overhead and deployment errors.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are running Django on AWS Elastic Beanstalk and experiencing health check failures due to ALLOWED_HOSTS validation.
It solves a narrow, well-defined problem with minimal dependencies and no security vulnerabilities. The dormant maintenance status is not a concern for a stable, single-purpose utility. Install it if this is your deployment model; skip it otherwise.
Install
django-ebhealthcheck on PyPI
Before you install
Installation is straightforward with low friction—a single wheel dependency on requests. The package is dormant (last release August 2022, last commit October 2023) but marked Production/Stable; it solves a narrow, stable problem unlikely to require frequent updates.
Requires Django to be installed and configured; IMDSv2 support requires version 2.0.0 or higher (use version 1.x for IMDSv1-only environments).
License in practice
BSD permissive license imposes no significant restrictions; you may use, modify, and distribute the package freely in commercial and private projects.
Quickstart
pip install django-ebhealthcheck
# In settings.py INSTALLED_APPS:
INSTALLED_APPS = [
...
'ebhealthcheck.apps.EBHealthCheckConfig',
...
]
Verify before relying
- Whether the package works with current Django versions (latest release was August 2022).
- Compatibility with Python versions beyond what the fact sheet specifies.
Package facts
| License | BSD permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagerequests |
| Maintenance | Dormant 1,453 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 80,208 / month, #14,309 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: DjangoIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonTopic :: Software Development :: Libraries :: Python Modules |
Evidence: django_ebhealthcheck-2.0.2-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django elastic beanstalk health check”
- django-ebhealthcheckAutomatically adds an Elastic Beanstalk instance's public IP to…
- awsebcliEB CLI is a command-line tool for deploying, managing, and monitoring…
- django-health-checkProvides pluggable health check endpoints for Django applications to…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also awsebcli · django-allow-cidr · django-watchman · django-xff · py-healthcheck · django-defender · django-ipware · django-health-check · fastapi-healthchecks · aws-cdk.aws-elasticloadbalancing