You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If applicable, what version of Node.js are you using?
20.17.0
Amplify CLI Version
12.12.6
What operating system are you using?
Linux (amplify:al2023)
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
N/A
Describe the bug
We are experiencing an issue where when we deploy using Amplify Hosting (we push changes to a GitHub branch configured in the AWS Amplify Console settings), one of our Lambdas fails to build, however the overall build and deployment both are reported as having succeeded.
If you download the build .zip folder from AWS Lambda, the dist/ folder is completely missing, however building the function locally and deploying manually using aws lambda update-function-code --function-name <function> --zip-file fileb://$ZIPFILE --region=<region>, works successfully.
It seems the build is failing as part of the Amplify deployment, but is not being reported.
Expected behavior
If the code is valid, Amplify managed Lambda functions build correctly when doing an Amplify deployment. If there is an error and the code cannot be built, an error is reported and the overall deployment should fail.
Reproduction steps
I'm unfortunately unable to share our code to reproduce the issue, but can share the _LIVE_UPDATES values we're using for Amplify:
We also have NODE_OPTIONS set with --max_old_space_size=8192, and _CUSTOM_IMAGE set to amplify:al2023
This problem only seems to be affecting one of our functions, the others do appear to build and deploy correctly (they have a dist/ folder).
If there's a way to get any more detailed logs from the deployment to understand why the failure happened that would be very helpful. Right now looking in the Amplify build logs, I just see the function successfully being updated in CloudFormation.
This issue is now closed. 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.
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
20.17.0
Amplify CLI Version
12.12.6
What operating system are you using?
Linux (amplify:al2023)
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
N/A
Describe the bug
We are experiencing an issue where when we deploy using Amplify Hosting (we push changes to a GitHub branch configured in the AWS Amplify Console settings), one of our Lambdas fails to build, however the overall build and deployment both are reported as having succeeded.
If you download the build
.zip
folder from AWS Lambda, thedist/
folder is completely missing, however building the function locally and deploying manually usingaws lambda update-function-code --function-name <function> --zip-file fileb://$ZIPFILE --region=<region>
, works successfully.It seems the build is failing as part of the Amplify deployment, but is not being reported.
Expected behavior
If the code is valid, Amplify managed Lambda functions build correctly when doing an Amplify deployment. If there is an error and the code cannot be built, an error is reported and the overall deployment should fail.
Reproduction steps
I'm unfortunately unable to share our code to reproduce the issue, but can share the
_LIVE_UPDATES
values we're using for Amplify:We also have
NODE_OPTIONS
set with--max_old_space_size=8192
, and_CUSTOM_IMAGE
set toamplify:al2023
This problem only seems to be affecting one of our functions, the others do appear to build and deploy correctly (they have a
dist/
folder).If there's a way to get any more detailed logs from the deployment to understand why the failure happened that would be very helpful. Right now looking in the Amplify build logs, I just see the function successfully being updated in CloudFormation.
Project Identifier
N/A
Log output
N/A
Additional information
If this makes any difference at all, the Lambda is a trigger which fires after changes to DynamoDB. The function interface looks like this...
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: