From a10708a8db8d7ffec8e3f21bde0eadca43f8123b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=80b=C3=A9j=C3=ADd=C3=A9=20=C3=80yod=C3=A9l=C3=A9?= Date: Thu, 26 Jan 2017 12:18:14 -0600 Subject: [PATCH] Fix jq flags -j jq flags was mistakenly used in place instead of -r --- docs/01-infrastructure-aws.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/01-infrastructure-aws.md b/docs/01-infrastructure-aws.md index c0e50a4..07473ea 100644 --- a/docs/01-infrastructure-aws.md +++ b/docs/01-infrastructure-aws.md @@ -276,7 +276,7 @@ Once the virtual machines are created you'll be able to login into each machine ``` WORKER_0_PUBLIC_IP_ADDRESS=$(aws ec2 describe-instances \ --filters "Name=tag:Name,Values=worker0" | \ - jq -j '.Reservations[].Instances[].PublicIpAddress') + jq -r '.Reservations[].Instances[].PublicIpAddress') ``` > The instance public IP address can also be obtained from the EC2 console. Each node will be tagged with a unique name. @@ -453,7 +453,7 @@ aws ec2 create-tags \ ``` aws ec2 describe-instances \ --filters "Name=instance-state-name,Values=running" | \ - jq -j '.Reservations[].Instances[] | .InstanceId, " ", .Placement.AvailabilityZone, " ", .PrivateIpAddress, " ", .PublicIpAddress, "\n"' + jq -r '.Reservations[].Instances[] | .InstanceId, " ", .Placement.AvailabilityZone, " ", .PrivateIpAddress, " ", .PublicIpAddress, "\n"' ``` ``` i-ae714f73 us-west-2c 10.240.0.11 XX.XX.XX.XXX