Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
69 views

I'm trying to use psycopg2 in an AWS Lambda function (Python 3.11 runtime). I followed the jkehler/awslambda-psycopg2 repository and copied the psycopg2-3.11 folders directly into my Lambda deployment ...
Kausar's user avatar
  • 75
0 votes
1 answer
197 views

I'm trying to use the google-generativeai package in my AWS Lambda function (Python 3.9 runtime). I want to package the dependency as a Lambda Layer, but I'm running into issues. I followed these ...
Harsha G V's user avatar
  • 1,062
1 vote
0 answers
84 views

{ "errorMessage": "Unable to import module 'lambda_function': /opt/python/cryptography/hazmat/bindings/_rust.abi3.so: invalid ELF header", "errorType": "Runtime....
Erwin's user avatar
  • 97
1 vote
0 answers
131 views

I'm trying to use the sharp library in my AWS Lambda function (Node.js 22.x) to compress images uploaded via API Gateway. I’ve added sharp as a Lambda Layer and referenced it in my AWS SAM template. ...
Vin's user avatar
  • 85
0 votes
0 answers
99 views

Here is my lambda function: using Amazon.Lambda.APIGatewayEvents; using Amazon.Lambda.Core; using shared; [assembly: LambdaSerializer(typeof(Amazon.Lambda.Serialization.SystemTextJson....
Leonardo Iorio's user avatar
0 votes
0 answers
29 views

I am attempting to build a lambda-layer from within a yarn workspace. the basic pattern I am using was inspired by the code at https://github.com/lukehedger/yarn-workspace-lambda-layer. This is the ...
tmc's user avatar
  • 514
1 vote
2 answers
88 views

I am creating a chatbot using python, and I was trying to create a API endpoint to get AI responses. I uploaded the code to AWS lambda functions by creating a function and used AWS lambda layers to ...
Vicente Redruello's user avatar
0 votes
1 answer
119 views

I am trying to add a predefined layer, but I can't find the AWS console where to do it as indicated by the guide. https://docs.aws.amazon.com/lambda/latest/dg/adding-layers.html. Can someone please ...
Random User's user avatar
-2 votes
1 answer
101 views

How to get all the aliases of a lambda function hosted on a AWS Region (example eu-west-1) using terraform?
Zahid Khan's user avatar
  • 3,375
0 votes
0 answers
76 views

I'm willing to understand the use of layers in lambdas. I'm using AWS cloud9 as IDE to sandbox the following tutorial: https://www.cloudtechsimplified.com/aws-lambda-layers/ I wrote a simple function ...
phil iot's user avatar
0 votes
0 answers
71 views

We are using only AWS lambda functions to build the entire project. I planned to use sqlalchemy using AWS lambda layers. To do that I followed the example from AWS github repo. Now I'm having trouble ...
Gopirengaraj C's user avatar
2 votes
0 answers
370 views

I'm trying to create an AWS Lambda function that requires several Python packages, specifically OpenCV, NumPy, and MySQL Connector. I want to package these dependencies into a Lambda Layer so that I ...
Etanolo's user avatar
  • 21
1 vote
0 answers
71 views

I have some CDK that defines a lambda layer using Code.FromAsset as follows: const prismaLayer = new LayerVersion(this, "PrismaLayer", { compatibleRuntimes: [Runtime.NODEJS_18_X], ...
Callum McClean's user avatar
0 votes
0 answers
42 views

I'm trying to use a rasterio layer in my lambda function but when I try to import rasterio in the code it throws this exception in cloudwatch: [ERROR] AttributeError: module 'os' has no attribute '...
Foncho's user avatar
  • 15
-1 votes
3 answers
163 views

I'm trying to run a AWS Lambda function with custom modules (e.g. pyodbc) so I'm using a Layer to include them via a zip file. I was following these tutorials: https://docs.aws.amazon.com/lambda/...
OmegaCoding's user avatar
0 votes
0 answers
188 views

I am new to opentelemetry. I am trying to configure zero-code otel instrumentation for aws lambda, so that it could push matrices and traces to SingnalFX. Implemented lambda using nodejs. I have ...
GPD's user avatar
  • 17
0 votes
0 answers
127 views

TL;DR: the requirements.txt file ends up the layer, not the actual modules. I have a very simple Lambda, created by the cdk. from aws_cdk import aws_lambda_python_alpha as aws_lambda_python from ...
Guillaume's user avatar
  • 3,081
0 votes
1 answer
118 views

I've been trying to set up a Lambda Layer for my Ruby Lambda function but I can't make it work for some reason. I've followed AWS' tutorial on creating (https://docs.aws.amazon.com/lambda/latest/dg/...
digopp22's user avatar
0 votes
1 answer
208 views

I used pip to install locally and the dependency installed here: c:\users\info\appdata\local\programs\python\python312\lib\site-packages\my-dependency I zipped the my-dependency folder and called it ...
Primico's user avatar
  • 2,495
0 votes
1 answer
142 views

I have created a zip file with all the libraries on Amazon linux 2023 and uploaded it to LambdaLayer. mkdir python pip3.11 install atproto -t python zip -r python.zip python I then uploaded that ...
Mioru's user avatar
  • 1
0 votes
1 answer
651 views

I'm trying to follow a simple example from spacy universe layers page, but this is failing for me: Code Implementation: # template.yaml file AWSTemplateFormatVersion: "2010-09-09" Transform:...
Willian's user avatar
  • 3,475
-1 votes
1 answer
445 views

I am deploying my Lambda function and getting the below error , I tried to rollback the CloudFromation stack but still getting the same issue . "CloudFormation did not receive a response from ...
Nisha Vijayakumar's user avatar
0 votes
1 answer
275 views

I have a code that runs a lambda function and uses lambda layers. The code works as expected in AWS environment. For simple lambdas i can run the lambda locally by providing the prerequisite 'env' ...
Daptal Ms's user avatar
  • 381
1 vote
0 answers
54 views

I am attempting to execute a program using an AWS Lambda function with layers and triggers in AWS GovCloud. However, I am facing a memory error during the process of uploading a ZIP file containing ...
Brian Perker's user avatar
1 vote
0 answers
578 views

I'm migrating my AWS Lambda Python runtime from 3.8 to 3.11. I'm using AWS Layers to package my dependencies. In my Lambda function, I'm trying to connect to Amazon Redshift using SQLAlchemy. Here are ...
Sanjay Shukla's user avatar
1 vote
2 answers
2k views

I'm trying to create an AWS Lambda Layer using Python 3.12 and pyodbc. I've seen a few different sites where they use an older version of Python and, when I try to translate to 3.12, it fails ...
Mark Vaughan's user avatar
1 vote
1 answer
148 views

I'm using lambda layer in my lambda function. Since lambda layer code will not be present in the local system, I'm not able mock the layer functions My code looks like this // index.mjs import layer ...
pavan's user avatar
  • 11
1 vote
1 answer
2k views

I have the following Lambda function: import pandas as pd def lambda_handler(events, context): d = {'col1': [1, 2], 'col2': [3, 4]} df = pd.DataFrame(data=d) print(df) I have pandas (and ...
Ewan's user avatar
  • 568
1 vote
0 answers
117 views

Snippet from code: #!/usr/bin/env python3 import os import traceback from jwt import JWT from botocore.vendored import requests import time def lambda_handler(event, context): app_id = $$$ ...
Kunal Sharma's user avatar
1 vote
0 answers
122 views

I'm using ADOT/OTEL (arn:aws:lambda:us-west-2:901920570463:layer:aws-otel-python-amd64-ver-1-21-0:1) to generate telemetry for ingestion into Honeycomb from AWS Lambda (Python). On the whole, this ...
moe's user avatar
  • 472
1 vote
0 answers
160 views

I had some AWS Lambda functions running on Python 3.7 runtime, and my target was to update them to Python 3.11. They have some functionality (JDBC connections) which requires running JVM on the ...
Ilia  Karasin's user avatar
2 votes
2 answers
878 views

I'm using NodeJs(ES6) on AWS Lambda with node_module as AWS Layer and I want to publish a message on SNS. The above code works perfectly with CommonJs syntax but using import syntax (ES6) facing an ...
Mayur's user avatar
  • 631
0 votes
1 answer
207 views

My lambda uses requests. I have one package.zip file that works correctly when I deploy using cdk. I've tried multiple things to reproduce the package.zip I have. All of the ways I've tried fail. Once ...
Matthew's user avatar
1 vote
0 answers
520 views

I'm trying to use Selenium with AWS Lambda for web scraping tasks using Python. However, I'm encountering difficulties when trying to run Selenium on Lambda with Python versions greater than 3.7. ...
Shubham's user avatar
  • 41
1 vote
1 answer
1k views

I have a terraform config to create a lambda layer in AWS, variable "package_name" { type = string description = "name of the lambda layer" default = "google-...
Arun's user avatar
  • 831
3 votes
1 answer
11k views

When setting up a lambda written in python, you can include libraries (json, pymysql, pandas, etc.) either using a requirements.txt file, or by setting up a layer. Does anyone know which option works ...
Yanay Lehavi's user avatar
0 votes
2 answers
412 views

So all I have for my Lambda Function so far is: import json import os import tuya_connector And when I click "Test", I'm getting the following error: "Unable to import module '...
dinosaur's user avatar
0 votes
1 answer
384 views

I am trying to unit test my lambda using jest. In the lambda code, we have a line of code that relies on a package situated in the lambda layer. import { logger } from 'opt/nodejs/logger'; ... logger....
Oussema Miled's user avatar
0 votes
2 answers
557 views

I've been dealing with this issue for the past few days now. I am trying to create a lambda layer with the following modules: cryptography, ldap3, and bonsai to use in my lambda_function that has a ...
Lee Cavazos's user avatar
0 votes
1 answer
141 views

import { AppConfig } from "commons/environment/appconfig"; import { log } from 'commons/utils/logger'; Here I'm trying to import functions from my "commons" layer & trying to ...
Dur Joy's user avatar
  • 13
0 votes
0 answers
67 views

I have the following class I am trying to make into a Lambda Layer in Nodejs. import { Athena } from "aws-sdk"; export class AthenaHelper { private athena = new Athena(); public ...
Coder Noob's user avatar
1 vote
2 answers
1k views

writing program on aws lambda and got an error called "Unable to import module 'lambda_function': No module named 'awswrangler'", and after searching in yt, google not get any solution, how ...
VIJAY's user avatar
  • 11
2 votes
2 answers
2k views

I have following python lambda function lambda_function.py from Crypto.Cipher import AES from Crypto.Util.Padding import pad,unpad import base64 #CBC with Fix IV data = 'random text to be encrypted ...
micronyks's user avatar
  • 55.6k
1 vote
6 answers
3k views

I am trying to add the OpenAI Python library to my AWS Lambda function. I tried to add them via AWS Lambda Layers as described in this guide. However, when executing my code, the addition of this line:...
finnjgr's user avatar
  • 467
3 votes
2 answers
3k views

I've been trying to move some python code I've written into AWS Lambda. It's a CSV validator that uses the 'pycsvschema' library, and works perfectly on my local PC. I had to do some finicking with ...
Carmen Navarro's user avatar
1 vote
1 answer
2k views

I've been trying for several days to create an AWS Lambda function that uses psycopg2. After looking at numerous tutorials and lots of trial and error, I have the following process. I build and run a ...
CyborgOctopus's user avatar
1 vote
1 answer
1k views

I pip installed aws-wsgi and flask using AWS Cloud9 and then downloaded the zip file. This file was then uploaded to a Lambda Layer, which was then attached to my Lambda Function. However, I still get ...
Amiteshwar 's user avatar
0 votes
1 answer
683 views

I am trying to import pydantic to a lambda via a lambda layer and I keep getting this error [ERROR] Runtime.ImportModuleError: Unable to import module 'main': No module named 'pydantic' Traceback (...
AR98's user avatar
  • 11
2 votes
3 answers
6k views

Context I have a lambda with the following handler function: import json from langchain_community.llms import ollama def lambda_handler(event, context): return { 'statusCode': 200, ...
leshugo33's user avatar
  • 175
0 votes
0 answers
197 views

I want to implement Lambda Layers into my Serverless application. I plan to create three layers, each based on separate requirements.txt files located in separate directories. Unfortunately, I am ...
b33's user avatar
  • 1

1
2 3 4 5
9