427 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
93
views
Use Lambda layer in lambda on .NET 8.0
I have created a shared library and details are here:
sharedlibrary.csproj:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</...
Best practices
1
vote
1
replies
155
views
How do I determine the correct order of Lambda layers in AWS?
I’m working with AWS Lambda and need to attach multiple Lambda layers to a function. I know that AWS allows you to specify the order of layers, but I’m unclear on how the ordering actually affects ...
0
votes
1
answer
87
views
AWS Lambda: Runtime.ImportModuleError: /var/task/psycopg2/_psycopg.so: file too short after copying psycopg2 folder
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 ...
0
votes
1
answer
211
views
Runtime.ImportModuleError: Unable to import module 'lambda_function': No module named 'google.generativeai'
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 ...
1
vote
0
answers
103
views
AWS Lambda Runtime.ImportModuleError
{
"errorMessage": "Unable to import module 'lambda_function': /opt/python/cryptography/hazmat/bindings/_rust.abi3.so: invalid ELF header",
"errorType": "Runtime....
2
votes
0
answers
162
views
AWS Lambda (Node.js) with Sharp Layer still throws error: "Cannot find module 'sharp'"
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.
...
0
votes
0
answers
105
views
How can I reference a lambda layer from a lambda function in C# dotnet?
Here is my lambda function:
using Amazon.Lambda.APIGatewayEvents;
using Amazon.Lambda.Core;
using shared;
[assembly: LambdaSerializer(typeof(Amazon.Lambda.Serialization.SystemTextJson....
0
votes
0
answers
31
views
yarn workspaces for lambda layer - how to only include prod deps in the layer
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 ...
1
vote
2
answers
94
views
No module named '_typeshed' while using AWS lambda functions
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 ...
0
votes
1
answer
149
views
How to add an AWS layer to a function using ARN specification
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 ...
-2
votes
1
answer
104
views
How to get all the aliases of a lambda function using terraform?
How to get all the aliases of a lambda function hosted on a AWS Region (example eu-west-1) using terraform?
0
votes
0
answers
81
views
AWS Lambda with Layer in ts cannot find module in /opt/folder
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 ...
0
votes
0
answers
79
views
Is is good use sqlalchemy in AWS Lambda base project?
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 ...
2
votes
0
answers
401
views
How to create an AWS Lambda Layer with from requirements.txt?
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 ...
1
vote
0
answers
74
views
Github Actions fails to build CDK Lambda Layer using Docker
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],
...