adding filter to aws describe-instances command to filter by the vpc-id

pull/101/merge
Jason Price 2016-10-03 09:36:05 -04:00 committed by Kelsey Hightower
parent 4ad918e7c6
commit 68dc4507c2
1 changed files with 1 additions and 1 deletions

View File

@ -452,7 +452,7 @@ aws ec2 create-tags \
```
aws ec2 describe-instances \
--filters "Name=instance-state-name,Values=running" | \
--filters "Name=instance-state-name,Values=running" "Name=vpc-id,Values=${VPC_ID}" | \
jq -j '.Reservations[].Instances[] | .InstanceId, " ", .Placement.AvailabilityZone, " ", .PrivateIpAddress, " ", .PublicIpAddress, "\n"'
```
```