title: AWS Waiter TasksStopped failed: taskId length should be one of
body: <p>For some reason I am getting the following error:</p>
  
  <p><strong>Waiter TasksStopped failed: taskId length should be one of [32,36]</strong></p>
  
  <p>I really don't know what taskId is supposed to mean and aws documentation isn't helping. Does anyone know what is going wrong in this pipeline script?</p>
  
  <pre><code>    - step:
      name: Run DB migrations
      script:
      - &gt;
        export BackendTaskArn=$(aws cloudformation list-stack-resources \
                            --stack-name=${DEXB_PRODUCTION_STACK} \
                            --output=text \
                            --query="StackResourceSummaries[?LogicalResourceId=='BackendECSTask'].PhysicalResourceId")
      - &gt;
        SequelizeTask=$(aws ecs run-task --cluster=${DEXB_PRODUCTION_ECS_CLUSTER} --task-definition=${BackendTaskArn} \
                          --overrides='{"containerOverrides":[{"name":"NodeBackend","command":["./node_modules/.bin/sequelize","db:migrate"]}]}' \
                          --launch-type=EC2 --output=text --query='tasks[0].taskArn')
      - aws ecs wait tasks-stopped --cluster=${DEXB_PRODUCTION_ECS_CLUSTER} --tasks ${SequelizeTask}
  </code></pre>