Cannot add new environment with deleted lambda-layer #13763
Labels
functions
Issues tied to the functions category
pending-response
Issue is pending response from the issue author
pending-triage
Issue is pending triage
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: