Opsworks -- Quickly Listing Hosts on the Command Line
Here’s a great example of using the aws-cli to speed up your life. Uses jq and aws-cli
# bash / zsh function
function opsworks-hosts-prod () {
aws opsworks describe-instances --stack-id=fffff-fffff-ffff-fff-fffffff | jq '.Instances[].PublicDns' | grep -v null | sed s/\"//g
}
# usage
$ opsworks-hosts-prod
XXXXX.compute-1.amazonaws.com
XXXXX.compute-1.amazonaws.com
XXXXX.compute-1.amazonaws.com
XXXXX.compute-1.amazonaws.com