amplify-cli: Failed to create models in the cloud: Modelgen job creation failed

Before opening, please confirm:

  • I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
  • I have searched for duplicate or closed issues.
  • I have read the guide for submitting bug reports.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

How did you install the Amplify CLI?

npm

If applicable, what version of Node.js are you using?

v12.16.1

Amplify CLI Version

4.46.1

What operating system are you using?

Mac

Amplify Categories

auth, storage, function, api, hosting

Amplify Commands

push

Describe the bug

I made two small changes (one to one model and one to another model). I ran npm run amplify-modelgen. When I run amplify push everything looks like it works except that I see the output:

⠙ Updating resources in the cloud. This may take a few minutes...Successfully generated models. Generated models can be found in /Users/emmafass/ringside-pro/src
✔ Code generated successfully and saved in file src/API.ts
Failed to create models in the cloud: Modelgen job creation failed
✔ All resources are updated in the cloud

I first saw this error after I tried an amplify push and it asked me if I want to upgrade my node version in some of the template files of the functions I created. It suggested doing this in a dev environment as it may cause some issues. I went forward with it in dev and then saw the Failed to create models in the cloud: Modelgen job creation failed error.

To confirm that the models were not correctly updated in the cloud, I want to AppSync and checked my schema. The changed models were still in their old forms.

I tried making a minor change to my schema. Then I ran amplify push again. Same output with the same error.

Expected behavior

Expect the changes I made to be pushed to the cloud.

Reproduction steps

  1. Make a change to a model in schema.graphql
  2. Run npm run amplify-modelgen
  3. Run amplify push

GraphQL schema(s)

# Put schemas below this line


Log output

# Put your logs below this line


Additional details

App Id: d2wxezabb7wfg6 Env: dev

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 21 (7 by maintainers)

Most upvoted comments

We currently don’t support Admin UI CMS or Datastore with RDS hence the failure. This wouldn’t affect any of your other app functionalities as mentioned here - https://github.com/aws-amplify/amplify-cli/issues/6959#issuecomment-806223042

Ah! Got it. The error message isn’t a blocker for your deployment and it just means the Admin UI CMS wouldn’t be able to use the latest models. We’ve diagnosed the root-cause and will be looking into this.