question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Amplify push doesn't work

See original GitHub issue

Describe the bug In my schema.graphql, I added @searchable. However, running amplify push doesn’t actually update cloud resource even though it says so.

To Reproduce Steps to reproduce the behavior:

  1. Update my current schema.graphql to add @searchable after @model.
  2. amplify push.
| Category | Resource name      | Operation | Provider plugin   |
| -------- | ------------------ | --------- | ----------------- |
| Api      | inventoryappmobile | Update    |                   |
| Auth     | cognitoc7f37f50    | No Change | awscloudformation |
| Storage  | s307ab5088         | No Change | awscloudformation |
? Are you sure you want to continue? Yes
✔ All resources are updated in the cloud
  1. amplify codegen statements --nodownload because I want to use GraphQL query such as searchXX in my code. (See here)
✔ Generated GraphQL operations successfully and saved at src/graphql

Expected behavior Cloud resource should be updated and GraphQL statements should be updated to include searchXX. However, after above steps, I run amplify status and it still shows:

| Category | Resource name      | Operation | Provider plugin   |
| -------- | ------------------ | --------- | ----------------- |
| Api      | inventoryappmobile | Update    |                   |
| Auth     | cognitoc7f37f50    | No Change | awscloudformation |
| Storage  | s307ab5088         | No Change | awscloudformation |

I believe cloud resources are not updated and same to GraphQL statements.

Additional context amplify version: 0.1.36 OS: MacOS

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
YikSanChancommented, Dec 9, 2018

Also, I find the same issue #243 but after I try amplify api gql-compile, still nothing happens. Seems @mkaschke and @jtaylor1989 are faced with the same issues. Really look forward to solving the problem

0reactions
github-actions[bot]commented, May 27, 2021

This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

API (GraphQL) - Troubleshooting - AWS Amplify Docs
If your deployment fails locally when updating multiple GSIs, you'll have the ability to run: amplify push --iterative-rollback to rollback the last-known-good ...
Read more >
Using AWS-Amplify -> "amplify push" not working
Why am I getting this error? I have already run the same command in the past. And I did not change my NodeJS...
Read more >
Team workflows with Amplify backend environments
If you don't have a project, create one using bootstrap tools like create-react-app or Gatsby. ... Enter a name for the environment: prod...
Read more >
Build succeeds but backend changes are not deployed
On Amplify console after a push to a connected branch the build goes trough all the steps and there are no errors, the...
Read more >
Setting up Android Push Notifications with AWS Amplify
Execute "amplify push" to update the Auth resources in the cloud. ? ApiKey XXXXXXX √ The FCM channel has been successfully enabled. Note:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found