Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imds - CLI tool to interact with Instance Metadata

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.

USAGE

$ imds -h

██╗███╗   ███╗██████╗ ███████╗
██║████╗ ████║██╔══██╗██╔════╝
██║██╔████╔██║██║  ██║███████╗
██║██║╚██╔╝██║██║  ██║╚════██║
██║██║ ╚═╝ ██║██████╔╝███████║
╚═╝╚═╝     ╚═╝╚═════╝ ╚══════╝
==============================

Usage:
  imds [path] [flags]

Examples:
imds instance-id

Flags:
  -h, --help   help for imds

INSTALLATION

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

Docker

Note

This is currently work-in-progress

About

A small CLI tool to interact with the Instance Metadata Service in EC2 instances

Resources

Stars

Watchers

Forks

Releases

Contributors

Languages