title: Assign output from AWS CLI command to 2nd AWS CLI command
body: <p>I am writing automation task for creating AWS AMI image, the goal is get output from <code>aws import-image</code> (.ova to ami convert) and add the name in 2nd command:</p>
  <pre><code>importaskid=$(aws ec2 import-image --disk-containers  Format=ova,UserBucket=&quot;{S3Bucket=acp17,S3Key=XXXXX.ova}&quot; | jq -r '.ImportTaskId')
  
  aws ec2 create-tags --resources echo $importaskid --tags 'Key=Name, Value=acp_ami_test'
  </code></pre>
  <p>I am able to <code>$importaskid</code> and see needed output but when use <code>aws ec2 create-tags</code> the AMI image created without name and the output from 2nd command is empty.</p>
  <p>Appreciate your assistance.</p>