From 68dc4507c2215face469fd029fb9aaee0532efd3 Mon Sep 17 00:00:00 2001 From: Jason Price Date: Mon, 3 Oct 2016 09:36:05 -0400 Subject: [PATCH] adding filter to aws describe-instances command to filter by the vpc-id --- docs/01-infrastructure-aws.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/01-infrastructure-aws.md b/docs/01-infrastructure-aws.md index c0e50a4..fbaa000 100644 --- a/docs/01-infrastructure-aws.md +++ b/docs/01-infrastructure-aws.md @@ -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"' ``` ```