Skip to main content

A Simple tool that registers ec2 host information to a DynamoDB Table

Project description

PyPI

Build Status

noderegister

A Simple tool that registers ec2 host information to a DynamoDB Table

DDB Content Example

HOSTNAME NODE_TYPE NODE_STATE PRIVATE_IP TIME_STAMP
ip-172-31-36-196.us-west-2.compute.internal seednode Running 172.31.36.196 Tue Jul 2 20:09:11 2019
ip-172-31-36-197.us-west-2.compute.internal seednode Running 172.31.36.197 Tue Jul 2 20:10:11 2019
ip-172-33-36-190.us-west-2.compute.internal clusternode Running 172.33.36.190 Tue Jul 2 20:11:11 2019
ip-172-33-36-191.us-west-2.compute.internal clusternode Running 172.33.36.191 Tue Jul 2 20:12:11 2019
ip-172-33-36-192.us-west-2.compute.internal clusternode Running 172.33.36.192 Tue Jul 2 20:13:11 2019

PyPI - Python Version

Useage

noderegister

usage: noderegister [-h] [-c] [-a ASSIGN | -s SET_STATE | -r | -l]
                    [-D DYNAMODB_TABLE]

optional arguments:
  -h, --help            show this help message and exit
  -c, --create_ddb      Create a new DynamoDB table

actions:
  -a ASSIGN, --assign ASSIGN
                        Set the node type of an existing node
  -s SET_STATE, --set_state SET_STATE
                        Set the node state of an existing node
                        (running|terminated)
  -r, --register_node   Add a new node to the DynamoDB table
  -l, --list            List Registered Node in given DynamoDB Table

required:
  for (assign|state|list|register_node) actions

  -D DYNAMODB_TABLE, --dynamodb_table DYNAMODB_TABLE
                        Name of Existing DynamoDB

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

noderegister-0.1.9.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file noderegister-0.1.9.tar.gz.

File metadata

  • Download URL: noderegister-0.1.9.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.5.6

File hashes

Hashes for noderegister-0.1.9.tar.gz
Algorithm Hash digest
SHA256 cc7184f309e2463945106385d4728d61e0c39f1981072118096094e20240df15
MD5 e2a8c6e3944d5c7126738e9734b521ad
BLAKE2b-256 f7edfb3704c0890536413342019d89473211e5a11509e69920fca1982896d0cf

See more details on using hashes here.

Supported by

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