-
Notifications
You must be signed in to change notification settings - Fork 825
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
Lambda Layer always in Status Change since layer refactoring #7569
Comments
@StefanV85 this is an issue that we try to replicate on our end with no success yet. Could you give more information about your layer and the project?
|
Hi @attilah I tried to narrow down the problem for a while today. so it's defenetly not a problem with the "migration" of the layer refactoring. i wasn't able to narrow down the problem to specific files yet. regarding your questions:
|
👋 Hi, this issue was referenced in the v5.0.2 release! Check out the release notes here https://github.com/aws-amplify/amplify-cli/releases/tag/v5.0.2. |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Before opening, please confirm:
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
14.15.5
Amplify CLI Version
5.0.1
What operating system are you using?
Windows
Amplify Categories
auth, function, api, hosting
Amplify Commands
push, status
Describe the bug
Hello,
My existing Amplify Project use Lambda Layers. I updated now to Amplify Cli Version 5.0.1. Since Amplify 5 there is a complete refactoring of the Layer Handling.
The Migration of my Lambda Layer was done. and i updated all lambda settings to always use the latest lambda layer.
it works fine. if i change my layer code, all lambda functions are updated to the newest version.
The Problem is, that after the Amplify Push, the layer has again (without coding change) the amplify status "change".
so if i would do an "amplify push" => everything works.
But if i would do an "amplify push" or "amplify status" directly after, the status of the layer is imediatly "Update".
The result is, that each amplify push, will result in an new amplfy layer version, even i doesn't change the layer code.
if the layer always have the status "change".
i tried to setup a new "hello world" amplify project, with a lambda function, and an lambda layer. The problem doesn't exist here. after the "amplify push", the status of the lambda layer is in Status "No Change".
Are there any tricks, how to fix my layer in the existing project? Or how can i find out the reason, why amplify set the status to "Update"?
Kind Regards
Stefan
Expected behavior
After the Amplify Push, the layer has the status "No Change"
Reproduction steps
GraphQL schema(s)
# Put schemas below this line
Log output
Additional information
No response
The text was updated successfully, but these errors were encountered: