A tool for querying the AWS metadata service from the CLI
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
# awsmeta
A tool for querying the AWS metadata service
Requires Python 2.6+ (and must be run from an EC2 instance)
```
usage: awsmeta [-h] [-v API_VERSION] [--timeout TIMEOUT] [--version]
[-n short-name] [--list-names]
[path]
positional arguments:
path
optional arguments:
-h, --help show this help message and exit
-v API_VERSION Metadata API version (default='latest')
--timeout TIMEOUT HTTP connection timeout in seconds (default: 2)
--version show the awsmeta version
-n short-name, --by-name short-name
Look up a named metadata value
--list-names Print a list of known named metadata keys
```
# Installation
System-wide: `sudo pip install awsmeta`
User installation: `pip install --user awsmeta` (or use a virtualenv)
When installing as root, a bash completion script is installed to
/etc/bash_completion.d. As a non-root user, you'll need to install the
completion script yourself. You'll find it in the etc/bash_completion.d
subdirectory of the installation path.
# Packaging
[FPM](https://github.com/jordansissel/fpm) is recommended.
Example:
```
fpm -s python -t deb \
--iteration <package_revision> \
--after-install=extras/fpm/after-install \
--before-remove=extras/fpm/before-remove \
setup.py
```
A tool for querying the AWS metadata service
Requires Python 2.6+ (and must be run from an EC2 instance)
```
usage: awsmeta [-h] [-v API_VERSION] [--timeout TIMEOUT] [--version]
[-n short-name] [--list-names]
[path]
positional arguments:
path
optional arguments:
-h, --help show this help message and exit
-v API_VERSION Metadata API version (default='latest')
--timeout TIMEOUT HTTP connection timeout in seconds (default: 2)
--version show the awsmeta version
-n short-name, --by-name short-name
Look up a named metadata value
--list-names Print a list of known named metadata keys
```
# Installation
System-wide: `sudo pip install awsmeta`
User installation: `pip install --user awsmeta` (or use a virtualenv)
When installing as root, a bash completion script is installed to
/etc/bash_completion.d. As a non-root user, you'll need to install the
completion script yourself. You'll find it in the etc/bash_completion.d
subdirectory of the installation path.
# Packaging
[FPM](https://github.com/jordansissel/fpm) is recommended.
Example:
```
fpm -s python -t deb \
--iteration <package_revision> \
--after-install=extras/fpm/after-install \
--before-remove=extras/fpm/before-remove \
setup.py
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
awsmeta-0.5.1.tar.gz
(3.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file awsmeta-0.5.1.tar.gz.
File metadata
- Download URL: awsmeta-0.5.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ac8e0d506b4dd68fc4e54d132e7dec1881f45a33c268304c16450f690e00784
|
|
| MD5 |
f2ae8d27801b17d8f64fb2a89b95ee68
|
|
| BLAKE2b-256 |
dbf979473d4e3c303e51398af32b666ce5803ad46f19bab5bfe9ba8379af093a
|
File details
Details for the file awsmeta-0.5.1-py2.py3-none-any.whl.
File metadata
- Download URL: awsmeta-0.5.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c3c92aff1bfabb0cd13550dedb2baac1294a0d6ff5dd11e0659ca648f22b28e
|
|
| MD5 |
612dd3a4285d88ecd064121572549c8e
|
|
| BLAKE2b-256 |
ee5cff1a7c8fd3161655a4cc584be413fa5005033aea24277c845ff8f7ac8ec7
|