UNKNOWN
Project description
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)
.---------.
_ |:: [-=-] |
| | |_________|
|~|
|_| ,;;;;,
I\ ,__ ,;;;, __, ///\\\\\
I |{ / . . \ } / " \\||
I | ) ( _ ) ( \_= _///
I |{___'-. .-'___}\___ )_\
I ||~/,'~~~~~,\~~|'---(( \
I \ // \\ | \ \ \
I \/ // | | /-/
I (/ (/ | |/||\
I | | | |
I | | |____/
I :-----_o_-----: || |
I | /~~|===|~~\ | (( |
I || |===| || ||_/
/^\ "~ '^^^' "" ((__|
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
Close
Hashes for aws-is-instance-healthy-0.4.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59b926402e752e5157cf7a0ffcdddddae48274ef0087dd0b5e973c2da2ab9fe3 |
|
MD5 | cefded8245e6896447e8b4d7d9943056 |
|
BLAKE2b-256 | 19df44f14aa07a4f7782b340cd8663dc5df7240f8730aecb6b2a9c0683176ff1 |