Skip to main content
100%

Gist 3696816

✓ Published0🌍 Public
XXXX
Last edited Sep 11, 2012
Created on Sep 11, 2012

This shell function shows how to enumerate server details across an Engine Yard environment by opening an SSH session to each server and querying instance metadata. It displays the hostname, instance ID, and public hostname for every server in the specified environment, defaulting to “stipple_prod” and all servers if no arguments are given. The function uses the `ey` command-line tool for SSH access and `curl` to fetch instance metadata from the AWS EC2 metadata service at 169.254.169.254, combining the results with backticks for command substitution.

AI-generated description

Similar vizzes