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.

Project appears to be in a bad state. How to purge all Amplify generated files to escape bad state.

See original GitHub issue

** Current behavior: **

amplify init
// edit backend/api/myapi/schema.graphql
amplify status --> API (Update), Auth (No Change), Storage (No Change)
amplify push --> Everything updates correctly, no errors.
amplify status --> API (Update), Auth (No Change), Storage (No Change)

expected behavior - everything the same as above except the final step should be:

amplify status --> API (No Change), Auth (No Change), Storage (No Change)

** What I’ve tried **

  1. Removing the following files
amplify/\#current-cloud-backend
amplify/backend/amplify-meta.json
src/aws-exports.js
aws-exports.js
awsconfiguration.json
  1. amplify init
  2. amplify status // (API status is: Update)
  3. amplify push // (succeeds)
  4. amplify status // (API status is: Update)

** Feature Request ** This appears to be a bug in Amplify, but I’m not sure how to reproduce it. I would like to reset Amplify to an initial state (without losing my API, Auth, or Storage configuration), which files do I need to remove to do so?

A command like amplify clean would be useful for when things go wrong.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
kaustavghosh06commented, Dec 26, 2018

@ajhool Could you try using amplify env pull --restore? This would basically restore your local backend with whatever is there in the cloud. (i.e in your current-cloud-backend folder).

1reaction
UnleashedMindcommented, Dec 19, 2018

Thanks we are investigating the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS Amplify Build Issue - StackUpdateComplete
Solution 1 – “deployment-state.json”: To fix this issue, go to the S3 bucket containing project settings and deleted the “deployment-state.json” ...
Read more >
If you use Amplify and Git branches, you are going to have a ...
When you create an Amplify app (which contains different environments under it), you can connect it to a branch in your repository. That...
Read more >
RFC 3261: SIP: Session Initiation Protocol
1 Generating the Request A valid SIP request formulated by a UAC MUST, at a minimum, contain the following header fields: To, From,...
Read more >
Narrative of the Life of Frederick Douglass, an American Slave ...
They never knew when they were safe from punishment. They were frequently whipped when least deserving, and escaped whipping when most deserving it....
Read more >
Democracy and Education by John Dewey
Democracy and Education by John Dewey, the Pennsylvania State University, ... Faculty Editor, Hazleton, PA 18202-1291 is a Portable Document File produced.
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