Closed ashphy closed 1 month ago
Hey @ashphy, Thank you for raising this issue. I am working on reproducing it and will keep you updated on the outcome.
Hey @ashphy, We can reproduce the issue by following the steps mentioned in the description. Hence, marking this as bug for the team to evaluate further. To unblock, could you please downgrade to the previous CLI version until we resolve this issue?
Thank you for your prompt response. As suggested, I will downgrade to the previous version. Please feel free to close the issue once the fix is merged.
We are also affected by the error and would appreciate a fast fix.
CLI v12.12.6 has been released with the fix.
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?
v20.13.1
Amplify CLI Version
12.12.4
What operating system are you using?
macOS Sonoma 14.5
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes made
Describe the bug
In a project with Serverless containers enabled, updating a backend deployed with Amplify CLI v12.12.3 or earlier to Amplify CLI v12.12.4 and then running
amplify push
results in a failure to update DeploymentAwaiter.Context:
Issue:
amplify push
, causing the following error:Reviewing the CloudFormation Template reveals the following entry:
File: amplify/backend/api/containera76cba34/containera76cba34-cloudformation-template.json
Code: https://github.com/aws-amplify/amplify-category-api/blob/2e75a79816da2f5c928bdaa900f9385b96fd5581/packages/amplify-category-api/src/provider-utils/awscloudformation/base-api-stack.ts#L542-L545
The
S3Key
is fixed, which likely causes the source code not to be updated.https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html
The source code
custom-resource-pipeline-awaiter.zip
uploaded to the deployment bucket has been confirmed to be updated. However, the code on the lambda was confirmed to be NOT updated.Expected behavior
The DeploymentAwaiter source code should be updated to the latest version, and CloudFormation should complete successfully.
Reproduction steps
amplify push
to update the backend.amplify push
to update the backend.Project Identifier
Project Identifier: 52a166481f025be404045fcd549de961
Log output
No response
Additional information
No response
Before submitting, please confirm: