Caution
This is not an official AWS project and not endorsed by AWS. This is just a tool I have built for my convenience at my spare time and published for anyone who frequently interacts with IMDS.
$ imds -h
██╗███╗ ███╗██████╗ ███████╗
██║████╗ ████║██╔══██╗██╔════╝
██║██╔████╔██║██║ ██║███████╗
██║██║╚██╔╝██║██║ ██║╚════██║
██║██║ ╚═╝ ██║██████╔╝███████║
╚═╝╚═╝ ╚═╝╚═════╝ ╚══════╝
==============================
Usage:
imds [path] [flags]
Examples:
imds instance-id
Flags:
-h, --help help for imds
Note
Currently, this is only available for UNIX based instances. Will be working on the Windows version soon.
# for ARM systems, set ARCH to: `arm64`, `armv6` or `armv7`
ARCH=$(uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/')
PLATFORM=$(uname -s)_$ARCH
curl -sLO "https://github.com/hashrr/imds/releases/latest/download/imds_$PLATFORM.tar.gz"
tar -xzf imds_$PLATFORM.tar.gz -C $HOME/.local/bin && rm imds_$PLATFORM.tar.gz
chmod +x $HOME/.local/bin/imds
Note
This is currently work-in-progress
