-
Notifications
You must be signed in to change notification settings - Fork 819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Amplify project fails for all deployments with different environments #13572
Comments
Additional info: During the "Cloning repository" phase I always get the following error:
These seems to be related but since the cloning phase didn't raise an error I thought it might not matter. |
Hey @jmendozaTerrenta, thank you for reaching out. On the Amplify console, were there any changes to the backend connected to hosting/git branch? |
We did multiple push commands to try and resync the bad environment, however, during the process we deleted manually a DynamoDB table that was being used. After the push in which the first issue was raised and the one in which a table was deleted it seems the Amplify environment variables were corrupted |
The issue has been fixed. After trying to fix the environments that were corrupted we concentrated on the error raised during the "Cloning repository" phase. Turns out that resetting the environment cache did the trick and after that, it was just an issue of fixing the underlying error for environments affected. For future reference, the error message The fix was adding amplify.yml:
Reference to the issue (from amplify-hosting repository) that helped me: |
|
How did you install the Amplify CLI?
npm install -g @aws-amplify/cli
If applicable, what version of Node.js are you using?
16.18.1
Amplify CLI Version
12.10.1
What operating system are you using?
Windows 11
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
Deleted DynamoDB table. The DynamoDB table was automatically generated from Schema.graphql
Describe the bug
Environments can be pushed correctly from the amplify cli locally, however, every deployment (event the ones not being updated a while a go) fail with the following exit code:
This does not happen when trying amplify push locally.
Expected behavior
The automatic CI/CD deployments should either recognize the correct environment they are associated with and deploy, or show an error as to why the environment can't be recognized and let me fix it manually from the CLI or the AWS console.
Reproduction steps
Unable to reproduce in an empty project
Project Identifier
Project Identifier: aed6dee85659e018bbac86d0244fd500
Log output
Additional information
Multiple deployments have failed after deleting a DynamoDB table.
Also when trying to pull the affected environment locally, the following errors prompt
and
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: