-
This will query the meta data of an instance within aws and provide a json formatted output.
Usage
python metadata2json.py
-
This allows for a particular data key to be retrieved individually
Usage
python metadata2json-with-keys.py --key meta-data/instance-type
-
A nested object function allows you to pass in the object and a key and get back the value.
Example Inputs object = {“a”:{“b”:{“c”:”d”}}} key = a/b/c object = {“x”:{“y”:{“z”:”a”}}} key = x/y/z value = a
Usage
python3 nested-object.py \ --object {"x":{"y":{"z":"a"}}} \ --key x/y/z
-
Notifications
You must be signed in to change notification settings - Fork 0
License
deveshmehta/python-utils
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published