![]() |
![]()
| ![]() |
![]()
NAMEispeek - EC2 instance store lister SYNOPSISispeek [-NQTdr] [-D STRING] [-b
URL] [-p NUMBER] [--base-url=URL]
[--delimiter=STRING] [--names] [--quote]
[--type] [--port=NUMBER] PATH [KEY...]
DESCRIPTIONLists contents of the EC2 instance store. The PATH argument specifies the pathname to list. It is relative to http://169.254.169.254/latest. If PATH ends with a slash, it is treated as a directory and its content is listed. Otherwise, it is treated as a file. Optional KEY arguments are allowed when listing content of a file. If one or more KEYs are given, the file is parsed as a JSON object. For each KEY, a corresponding value is looked up in the resulting object and printed on a separate line, prefixed with KEY and a colon. The utility must be run from a EC2 instance. OPTIONS
Following option applies only when listing directories:
The options below configure output if at least one KEY is given:
The order of printing is: key name, type, value.
EXAMPLESGet instance ID$ ispeek /meta-data/instance-id i-deadbeef Print instance data$ ispeek /dynamic/instance-identity/document { Read availability region and instance type$ ispeek /dynamic/instance-identity/document region instanceType eu-west-1 m3.xlarge Same, including key names and types in the output$ ispeek -NT /dynamic/instance-identity/document region instanceType region:s:eu-west-1 instanceType:s:m3.xlarge Recursively list the contents of /meta-data/iam:$ ispeek -r meta-data/iam /meta-data/iam/info /meta-data/iam/security-credentials/ /meta-data/iam/security-credentials/user SEE ALSOeclat(1). AUTHORSSergey Poznyakoff BUG REPORTSReport bugs to <bug-eclat@gnu.org.ua>. COPYRIGHTCopyright © 2012-2018 Sergey Poznyakoff
|