Skip to content

Commit

Permalink
adding filter to aws describe-instances command to filter by the vpc-id
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Price authored and kelseyhightower committed Mar 23, 2017
1 parent 4ad918e commit 68dc450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/01-infrastructure-aws.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"'
```
```
Expand Down

0 comments on commit 68dc450

Please sign in to comment.