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
已提問 4 個月前檢視次數 294 次
1 個回答
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
已回答 4 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南