adding more

This commit is contained in:
xpk 2019-01-02 16:38:55 +08:00
parent 273af71d23
commit 498a5b101d
1 changed files with 4 additions and 0 deletions

4
aws/listInstances.sh Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
jq -c '.Reservations[].Instances[] | select(.Platform!="windows") | [.InstanceId,.PublicIpAddress,.PrivateIpAddress,(.Tags[] | select(.Key=="Name")| .Value)?, .InstanceType, .Placement.AvailabilityZone, .State.Name]' | tr -d '[["]'