title: How to edit/format table output in aws cli?
body: <p>This is my command which I run from my AWS CLI</p>
  
  <p>aws ec2 describe-instances --filters Name=instance-state-name,Values=running --query "Reservations[].Instances[].[InstanceType,Tags[].[Key]]" --region us-east-1 --output table > filename.txt</p>
  
  <p>My output I get is</p>
  
  <hr>
  
  <p>|        DescribeInstances        |</p>
  
  <p>t2.small<br>
  Contact<br>
  Environment<br>
  Asset<br>
  Product<br>
  Role<br>
  Application<br>
  Name<br>
  Organisation<br>
  m4.large<br>
  Application<br>
  Name<br>
  Organisation<br>
  Contact<br>
  Role<br>
  Product<br>
  Asset<br>
  Environment<br>
  m4.large<br>
  Environment<br>
  Application<br>
  Organisation<br>
  Name<br>
  Product<br>
  Asset<br>
  Contact<br>
  Role                           </p>
  
  <p>But, what I want is   </p>
  
  <p>Contact...............t2.small<br>
  Environment.......t2.small<br>
  Asset..................t2.small</p>
  
  <p>How Can I get this format in the output ?</p>