title: AWS Step Functions wait for CodeBuild to finish
body: <p>How to wait for a CodeBuild to finish inside a Step Functions state machine?</p>
  <p>The only wait I can think of right now is with a loop and a timer, like the flow bellow, but is it the only way to do it? Isn't there a &quot;WaitForBuild&quot; action or something like that?</p>
  <p><a href="https://i.stack.imgur.com/EJQgm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EJQgm.png" alt="enter image description here" /></a></p>
  <p>Typo: BatchGetBuildBatches should be BatchGetBuilds.</p>