keithrozario / Klayers

Python Packages as AWS Lambda Layers
Other
2.14k stars 309 forks source link

[BUG] The layer version show the message: "This layer no longer exists. You must remove this layer from the list before you can save any changes" #353

Closed haochiu28 closed 1 year ago

haochiu28 commented 1 year ago

Describe the bug Hello, we use Terraform to deploy Lambda, and we used requests, PyJWT, cryptography these three Layers. Terraform is using the latest version of Klayers Layer, but the latest version does not work on Lambda layer.

This Issue is similar to Issue#305(https://github.com/keithrozario/Klayers/issues/305)

Screenshots The layer version show the message: "This layer no longer exists. You must remove this layer from the list before you can save any changes" Screenshot 2023-07-06 at 11 03 53

But the latest layer version list shows Screenshot 2023-07-06 at 11 16 33

Layer Version ARN: arn:aws:lambda:us-east-2:770693421928:layer:Klayers-p39-requests:15 arn:aws:lambda:us-east-2:770693421928:layer:Klayers-p39-PyJWT:2 arn:aws:lambda:us-east-2:770693421928:layer:Klayers-p39-cryptography:14

Framework: Serverless

Additional context We lowered the Layer version and it works fine. arn:aws:lambda:us-east-2:770693421928:layer:Klayers-p39-requests:11 arn:aws:lambda:us-east-2:770693421928:layer:Klayers-p39-PyJWT:1 arn:aws:lambda:us-east-2:770693421928:layer:Klayers-p39-cryptography:11

Lambda Runtime settings: Runtime: Python3.9 Architecture: x86_64 Region: us-east-2(US East(Ohio))

keithrozario commented 1 year ago

It seems to be a quirk in the console UI, I am able to add it: image

I get the same error as you, but just clicking "Save" still works and will continue. image