title: "amplify push function" error: Resource is not in the state stackUpdateComplete
body: <p>Here's what I do:</p>
  <ol>
  <li><code>amplify add function</code> (...and then go through the wizard in order to create a serverless function...);</li>
  <li><code>amplify push</code>;</li>
  </ol>
  <p>And, boom! Here's what I get</p>
  <blockquote>
  <p>× An error occurred when pushing the resources to the cloud  An
  error occurred during the push operation: / Resource is not in the
  state stackUpdateComplete</p>
  </blockquote>
  <p>In the s3 bucket, I can see that the function zip file got created under /amplify-builds.</p>
  <p>Oh, and before you ask, I've found no deployment-state.json file at the root level.</p>
  <p>CloudFormation tells me that resource update failed because of:</p>
  <blockquote>
  <p>Embedded stack arn:aws:cloudformation:::stack/amplify----api-/ was
  not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS
  with reason: The following resource(s) failed to update:
  [GraphQLAPITransformerSchema3CB2AE18].</p>
  </blockquote>
  <p>I've tried <code>amplify remove function</code> followed by <code>amplify add function</code> without significant result.</p>
  <p>The error log file doesn't really help either:</p>
  <pre><code>{
      &quot;message&quot;: &quot;Resource is not in the state stackUpdateComplete&quot;,
      &quot;code&quot;: &quot;ResourceNotReady&quot;,
      &quot;retryable&quot;: false,
      &quot;time&quot;: &quot;2022-07-15T16:49:21.011Z&quot;,
      &quot;statusCode&quot;: 200,
      &quot;retryDelay&quot;: 30000
  }
  </code></pre>
  <p>Where should I go from here?</p>