-
Notifications
You must be signed in to change notification settings - Fork 823
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
Cannot add new environment with deleted lambda-layer #13763
Comments
Manually removing the layer from the |
Hey @DarylBeattie, thank you for reaching out. Do you observe the layer when running |
Hi @ykethan , no it doesn't list it there when I do As for pulling the backend into an empty dir outside my env............ i haven't tried that yet. I'm not sure I have time to try it. 😐 |
@DarylBeattie could you try running amplify push with |
Yes I obviously tried that pretty much first thing. In the end I had to remove the mention of the layer from |
Glad to hear you were able to mitigate the issue by removing the reference in the |
This issue is now closed. Comments on closed issues are hard for our team to see. |
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
18.15.0
Amplify CLI Version
12.11.1
What operating system are you using?
Windows
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
When I issued an
amplify add env
, followed by anamplify push
as described here, my push fails with the following message:It is important to note: myprojectExampleLayer was created and removed many, many months ago. It no longer exists. It was removed using
amplify function remove
(as documented here).I also noticed in the amplify-push, that it is listed in the push:
-- but it should not be.
I have also noticed (with respect to the error msg), that it complains there's no
amplify.state
file: My Lambda-layer (which works) does not have anamplify.state
file, however all my functions do have that file. So it may be looking for a file that never existed.NOTE: This is preventing me from creating an env, and thus releasing software, and is therefore extremely important to me. 🙂
(My project name was replaced with "MyProject", in the appropriate case, in the above logs.)
Expected behavior
I expect the push to succeed.
Reproduction steps
Project Identifier
No response
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: