I'm using the AWS CLI on my computer using the cygwin terminal, and I'm trying to output text of the query to describe the volumes my EC2 environement. The cli command works just fine, but the output text file to the tsv file results in a badly formatted document.
The aws cli command I'm using is:
aws ec2 describe-volumes --region $REGION --query 'Volumes[*].[Attachments[].{VolumeID:VolumeId,InstanceID:InstanceId},AvailabilityZone]' --output text >> Volumes_In_AWS.tsv
This is what the text file outprints onto the tsv file.
I'm trying to get the region/az on the same line as the instanceid and the volumeid but the outprint text seems to be representing this as a new line.
Is there any way possible to output text onto the same line using this cli command?
Thanks!