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 **
- Removing the following files
amplify/\#current-cloud-backend
amplify/backend/amplify-meta.json
src/aws-exports.js
aws-exports.js
awsconfiguration.json
- amplify init
- amplify status // (API status is: Update)
- amplify push // (succeeds)
- 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:
- Created 5 years ago
- Comments:10 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@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).Thanks we are investigating the issue.