1 Answer
- Newest
- Most votes
- Most comments
0
I finally got my env back up by following a modified version of the solution here:
- Merge into branch in source repo, triggering new build in Amplify
- Observe that Amplify build fails with “API key not found” error
- Go to AWS plugin within PyCharm, update credentials, open local console
- A first time:
amplify env checkout BRANCH
- Edit
amplify/backend/api/appname/parameters.json
to add aCreateAPIKey: 0
parameter - Edit
amplify/backend/backend-config.json
and remove allGraphQLAPIKeyOutput
references - A second time:
amplify env checkout BRANCH
- A first time:
amplify push -y
- Roll back all local changes (namely: steps 4 and 5 above)
- A third time:
amplify env checkout BRANCH
- A second time:
amplify push -y
- Go back to failed build in Amplify UI, click to “Redeploy this version” to rebuild
I had tried and failed with the same procedure previously, because I hadn't realized that the repeated checkouts were necessary (I skipped them because I had already checked out the env). This whole experience has been really frustrating, and it makes me regret having chosen Amplify for my app framework.
answered 3 months ago
Relevant content
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
However: after all this, I went back to Amplify Studio, and none of the "Manage content" functionality was working. The drop-down has my tables, but they show no content in the tables and I can't add records. I've tried:
This issue is true now in all four of my environments across two separate AWS accounts. While it's possible that the failure is unrelated to this issue here, everything was working a few days ago and all I've done since was wrestle with getting these API keys updated.
This is what fixed my Amplify Studio Data Manager:
Honestly, this whole experience has been a nightmare — and I see that, even after I edit my keys to be valid for longer, new deployments reset to 30 days. So I guess I have to manually deploy or extend the keys every 30 days, otherwise I face this nightmare again and again. It's a completely baffling design for an app framework that's intended for production apps.