Questions tagged [aws-lambda-layers]
183 questions
2
votes
0 answers
Get ARN of vendored layers
Looks like AWS layers like AWSLambda-Python37-SciPy1x have a different account and head version in the ARN in different regions. Eg
us-east-1: arn:aws:lambda:us-east-1:668099181075:layer:AWSLambda-Python37-SciPy1x:22
us-east-2:…
Oliver
- 21,908
- 4
- 55
- 73
2
votes
2 answers
Deploy Pytidylib module in aws lambda by using Lamda Layers
I am trying to deploy pytidylib python module into AWS lambda function by using layers .
I have created the path as described in aws docs and created new layer.
Now the code of pytidylib needs some libraries from /usr/lib but i have installed…
user190549
- 157
- 4
- 11
2
votes
1 answer
Is it possible to download the contents of a public Lambda layer from AWS given the ARN?
I want to download the public arn for a more compact version of spacy from this GitHub repository.
"arn:aws:lambda:us-west-2:113088814899:layer:Klayers-python37-spacy:27"
How can I achieve this?
coderboi
- 103
- 14
2
votes
0 answers
Calling a django function view from an aws lambda function
I want to run my django views on AWS Lambda. For this I had created a lambda function which is calling that view function. The AWS lambda function is something like this ->
import app.views as v
def functionA_handler(event, context):
…
Adi shukla
- 111
- 7
2
votes
1 answer
Unable to import modules from aws lambda layer
I have a requirements file for my pip packages. I installed it in a target folder and zipped the contents and uploaded it on AWS lambda…
Adi shukla
- 111
- 7
2
votes
1 answer
How to get latest Layer version with serverless framework for AWS Lambda
I'm trying to get latest Layer version with serverless framework by using serverless-latest-layer-version plugin. That plugin itself can get latest version of Layer but problem is whenever I made new deployment for both layers and function, layer…
PPShein
- 10,951
- 34
- 129
- 188
2
votes
1 answer
pyarrow as lambda layer
I need help in order to have pyarrow as a lambda layer for my lambda function.
I am trying to read/write parquet file and I am getting below error,
"errorMessage": "Unable to find a usable engine; tried using: 'pyarrow', 'fastparquet'.\npyarrow or…
Soumya
- 85
- 1
- 7
2
votes
2 answers
How to abstract DB connection in AWS Lambda?
I'm building an application in AWS with quite a few Lambda functions to write - and all of them will create a database instance to query on, by running the following code:
mydb =…
Manuel T. Coelho
- 33
- 4
2
votes
2 answers
How to update AWS Lambda configuration to the lastest version of a particular layer?
I am trying to achieve some automation using AWS CLI,
wherein I am able to update my AWS Lambda function using cli command -
aws lambda update-function-code --function-name --zip-file
And add a version to the layer using the command -
aws lambda…
Ani
- 3,452
- 5
- 52
- 113
2
votes
0 answers
SAM AWS - Testing AWS Lambda that depend on layers
I am using AWS SAM framework to build a coupled services Lambda and api gateway.
I am facing some difficulties to run a unit and integration tests for my lambdas functions which 're using layers (utilities functions, models, controllers, config…
MANI ADEL
- 21
- 3
2
votes
2 answers
Custom dependencies under "nodejs/" directory can not be resolved from aws-lambda
I am trying to import custom dependencies from lambda layer but is not working.
Environment: nodejs8.10
I have a layer which consist of following directory structure:
mylayer.zip-
|-nodejs-
|-util.js
Here, util.js has…
Rushi patel
- 314
- 3
- 12
2
votes
0 answers
Deploying Tensroflow Library as AWS Lambda Layer
I am trying to deploy Tensorflow (specifically: libtensorflow.so.1, libtensorflow.so.1.14.0, libtensorflow_framework.so.1, libtensorflow_framework.so.1.14.0) as AWS Lambda Layer. I am getting following error:
An error occurred: TensorflowLambdaLayer…
Stefan995
- 51
- 3
2
votes
1 answer
Lambda: cannot find module './drivers/node-mongodb-native/connection'", although mongoose layer added
I have a NestJS app, in my handler file I import mongoose to create the connection:
import * as mongoose from 'mongoose';
let conn = null;
const uri = process.env.MONGO_URI;
mongoose.connection.on('connected', () => {
// log something
});
then,…
SebastianG
- 5,763
- 2
- 24
- 61
2
votes
1 answer
How to deploy 'matplotlib', the Python library, as a Lambda Layer in AWS?
I have tried zipping and structuring the zip in the python/lib/python3.7/site-packages/{matplotlib here} But it says couldn't import ft2font which is in matplotlib/init_.py
Interestingly there is no other files with that name in my package. I tried…
Makalp Patel
- 21
- 2
2
votes
1 answer
Getting pyodbc to connect in AWS Lambda Layer
I have built deployment package to connect to a AWS RDS instance via pyodbc, after zipping up and uploading to AWS lambda this connection works.
When trying to connect via an AWS layer, following error is displayed.
"errorMessage": "('01000',…
CrashOverride
- 41
- 1
- 1
- 11