Skip to content

Instantly share code, notes, and snippets.

@restump
Created August 19, 2016 21:31
Show Gist options
  • Save restump/b6abc79aed9235c8cc2024affefdf5c5 to your computer and use it in GitHub Desktop.
Save restump/b6abc79aed9235c8cc2024affefdf5c5 to your computer and use it in GitHub Desktop.
IFS=$'\n' read -rd '' -a array <<< "$(aws ec2 describe-instances | jq -c .Reservations[])"
n=0; for i in "${array[@]}"; do n=$((n+1)); cbc create $n -V "${i}"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment