AWS: Is my instance healthy?
Simple tool to ensure that an AWS instance is healthy (ELB-Based)
Usage:
From inside an target EC2 instance::
$ am_i_healthy.py
Instance i-0d26836d9ab61a235 is healthy
Call am_i_healthy.py to check for its own health.
From outside an target EC2 instance::
$ is_instance_healthy.py sa-east-1 i-0d26836d9ab61a235
Instance i-0d26836d9ab61a235 is healthy
Call is_instance_healthy.py [region_name] [instance_id] to check for its health.
From within your own python script::
from vivareal.cli.is_instance_healthy import is_instance_healthy
status = is_instance_healthy(‘sa-east-1’, ‘i-0d26836d9ab61a235’)
print(status)
>>> (True, 'N/A', 'N/A')
When calling from within your own python script, the tuple structure is: - Healthy (boolean) - ReasonCode (string) - Description (string)
Metadata
Release files for aws-is-instance-healthy 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aws-is-instance-healthy-0.6.0.tar.gz | 3.7 kB | Details |
Release files / aws-is-instance-healthy-0.6.0.tar.gz
| Download URL | aws-is-instance-healthy-0.6.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f505429fb7c3d91bc6ae443ca3e057f18ef6737556b2c49028b3eda834f803b6
|
|
BLAKE2b-256 checksum How to use checksums |
a6062a1d5c362dcb9603ef5c356373de6a9f09f249f5c71b34400963f3a2ee09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |