Skip to content

Iterating over machines in EC2 and running remote commands outputting json

Zeev Glozman edited this page May 15, 2018 · 2 revisions

Exploration Commands

Get a list of all instannces in a default region

ngs -pl '``aws ec2 describe-instances``.map(F(i) [i.InstanceId, i.get("Tags", {}).get("role", "-") ])'