Search code examples
aws-lambdaserverless-framework

How to reference a layer provided by amazon for lambda function in serverless framework


Im trying to reference AWSLambda-Python38-SciPy1x:107 layer provided by amazon to my lambda function i tried hard coded the ARN but it doesn't work when deploying it on different stages.

I tried also this way but it also didn't work.

layers:

  • { Ref: MneLambdaLayer }
  • AWSLambda-Python38-SciPy1x:107

Solution

  • The solution was hardcoded the ARN its the most correct way to do it simply i had a typo error