How to restore a accidentely deleted AWS Lambda Layer

0

I created a lambda layer from AWS Amplify, I later deleted this layer from cloud console as I could not delete using amplify CLI. Now my amplify environment (push) is non functional as the cloud resources for the deleted layer were not found.

If anyone can suggest either one of the solution. I would be really helpful a) Restore Lambda Layer
(or) b) How to make amplify ignore the lambda function or remove it manually

satish
asked 4 months ago259 views
1 Answer
1

There is no option in console or cloud shell to restored a deleted layer- it's a dead end

Other suggestions are not option either. Amplify basically downloads the cloud configuration and checks it against the local one to determine the differential sync operation. Delete Lambda layer on deleted the layer object but an reference was left in amplify cloud configuration file. This led to failure in during first stage of synchronization options during amplify push.

I had to do the hard way, recreate fresh amplify application. Painful approach and not so elegant way. Thanks for taking time to answer by question.

Hope Aws team improves layer management in Amplify. It has been always notoriously bad implemention.

satish
answered 4 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions