Comments (9)
Hey @dragosiordachioaia, thank you for reaching out. Does the CI pipeline also use the latest/updated Amplify CLI version?
As the UserPoolClientLambda
is a inline function present in the auth CloudFormation templates, when running amplify push
Amplify builds and updates the NodeJs version on the Lambda function.
YAML CloudFormation
It appears this is an un-migrated auth resource, you can update the resource by running amplify update auth
which should prompt you to migrate the the auth resource.
from amplify-cli.
I've run amplify update auth
and it didn't prompt me to upgrade the resource. I did this a few months ago, so that's not too surprising.
Yes, the CLI in the pipeline is on the latest version (see screenshot below)
from amplify-cli.
Hey @dragosiordachioaia, thank you for confirming. Could you download and un-zip the #current-cloud-backend.zip
from the AWS S3 deployment bucket. In the CloudFormation templates under auth/<name>/build
and the awscloudformation/build
do you observe a userpoolclient lambda with a NodeJs runtime as 14?
Could you try pulling the project into a new directory outside your existing project directory. In the CloudFormation templates under backend/auth/<name>/build
and the backend/awscloudformation/build
do you observe a userpoolclient lambda?
from amplify-cli.
@ykethan I've checked all of that, no Lambda uses Node 14, only 18 and 20.
from amplify-cli.
@dragosiordachioaia could you provide us the App ID and failed build?
additionally, if you switch the image to Amazon Linux:2 image
does this throw a similar error message?
from amplify-cli.
app ID is d18apgfog4c8xo. One example of a failed build (before I disabled the back-end build altogether just to get the front-end to deploy) is 1740 (I hope this is the right identifier, it seems to be an auto-incrementing build number). As for switching to Amazon Linux: 2
, I tried it just now (while using Node 16 for the build, since building the front-end with Node 18 seems to run out of memory no matter what I try, but that's a problem to solve later) and this is the error I get. I am however installing Node 16 just above this and it does say it's installed, so I don't understand why this would not work:
npm ERR! command failed
npm ERR! command sh -c -- node scripts/warn-maintenance-mode.js
npm ERR! sh: node: command not found
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2024-03-11T20_41_20_388Z-debug-0.log
2024-03-11T20:41:57.270Z [ERROR]: !!! Build failed
2024-03-11T20:41:57.271Z [ERROR]: !!! Error: Command failed with exit code 127
2024-03-11T20:41:57.271Z [INFO]: # Starting environment caching...
2024-03-11T20:41:57.271Z [INFO]: # Uploading environment cache artifact...
2024-03-11T20:41:57.340Z [INFO]: # Uploaded environment cache artifact
2024-03-11T20:41:57.340Z [INFO]: # Environment caching completed
2024-03-11T20:41:57.341Z [INFO]: # A new default build image based on Amazon Linux 2023 is now generally available. The image includes newer versions of Node.js, Python, and Ruby that you can use to build your app. To use the new image, select "Amazon Linux:2023" in the "Build settings" section for your app in the Amplify console.
Terminating logging...```
from amplify-cli.
from amplify-cli.
@dragosiordachioaia thank you for the confirmation. Glad to hear you were able to mitigate the issue.
from amplify-cli.
⚠️ COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
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
- Failed to pull the backend CLI 12.12.0 HOT 5
- 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.