Comments (5)
Update. I manage to set cli version to 12.11.1 (there was still a _LIVE_UPDATES
entry for my branch which overwrite the global build setting). I think it is very odd that the console creates environments which duplicates the global variables.
Still the same error with 12.11.1 so 12.12.0 is not the culprit.
from amplify-cli.
Another update.
I then deleted the created backend environment and did a redeploy with amplify cli 12.11.0 and it worked :-)
I do not know if the issue was with 12.12.0 or that the first build failed with incorrect node version....
from amplify-cli.
Hey @bergmorten, thank you for reaching out. Glad to hear you were able to mitigate the issue, if the issue reoccurs could you try adding --debug
to the command which should provide some verbose logging. But the change in the node version may be the reason for the failed build, but do let us know if the issue reoccurs.
from amplify-cli.
What I think happen was that even when preBuild phase was failing the amplify-cli created an empty backend environment. So when preBuild phase was fixed and it did checkout an empty invalid environment.
It should not have created an empty / invalid environment?
The attempts which failed contained these lines:
2024-05-08T15:06:25.556Z [WARNING]: ✔ Successfully pulled backend environment wcs from the cloud.
2024-05-08T15:06:25.841Z [WARNING]: ✖ There was an error initializing your environment.
2024-05-08T15:06:29.195Z [INFO]: 🛑 Failed to pull the backend.
When I deleted the backend environment it did create a new environment.
2024-05-08T16:15:40.672Z [INFO]: �[0mAdding backend environment wcs to AWS Amplify app: XXXXXXXXX
from amplify-cli.
@bergmorten the branch should pull the backend that the app was connected to. If the backend does not exist it tries to create one for you.
from amplify-cli.
Related Issues (20)
- environment not setting up when switching amplify environments or "amplify pull" HOT 2
- Unauthorized tagging operation HOT 14
- When using the export command, a Lambda function with Python 3.7 is automatically generated. HOT 5
- Got gql "Syntax Error" after amplify pull, cannot compile or push any schema changes or roll back HOT 2
- Deleting rest api methods HOT 3
- Amplify push fails after adding a function HOT 2
- Function amplify.state files should be displayed in IDE HOT 1
- ENOENT: no such file or directory, stat .../#current-cloud-backend/<lambda-layer-path>/.../node_gyp_bins/python3 HOT 2
- Cannot add new environment with deleted lambda-layer HOT 4
- Amplify Angular Error export 'ApiAction' (imported as 'ApiAction') was not found in '@aws-amplify/core' HOT 3
- Error when run "amplify init" HOT 1
- my broken deployment issue is going to cost me $2300 this month and wont delete! HELP HOT 7
- Aws Amplify Liveness HOT 1
- update/delete of notifications on newly created environment yields in errors HOT 2
- Can't create new amplify env because MFALambdaRole already exists HOT 1
- AMplify push not working suddenly HOT 1
- Auto-update Lambda runtimes for analytics category with CLI upgrade HOT 4
- `amplify build`-related commands failing for Go Lambdas in Windows because of wrong argument to executeCommand
- UPDATE_ROLLBACK_FAILED after pushing with insufficient permissions HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amplify-cli.