Questions tagged [aws-lambda-containers]

41 questions
12
votes
2 answers

Test an AWS lambda locally using Docker container image

i have been having a hard time getting this thing to work right i am trying to invoke the Lambda locally which is running on docker container but i have following issue Docker File FROM public.ecr.aws/lambda/python:3.8 COPY myfunction.py ./ CMD…
5
votes
1 answer

Lambda Docker Image Not Running

I've had an absolute terrible time trying to get the Snowflake python connector to install. That is a side frustration in this, but i've finally managed to get it to install by using a full Ubuntu base Docker image. I cannot figure out how to make…
4
votes
2 answers

Is it possible to configure the Availability Zone(AZ) for Lambda function in AWS?

As we know there are multiple AZ in an Region, is it possible to deploy/create Lambda function in particular AZ of the region or Lambda function is created randomly in any AZ of particular Region?
Ganesh
  • 144
  • 1
  • 5
3
votes
1 answer

What is the difference between PackageType: Image and build --use-container in a SAM App?

PackageType: image seems to require a Dockerfile (looking at the hello-world example) along with ImageUri and Metadata And it also doesn't want me to use Runtime, Handler, Layers (not even using layers) whereas build --use-container does not seem to…
2
votes
1 answer

Problem running Spring boot graalvm native image on AWS Lambda using container image

I created simple spring boot application with a REST end point. I was able to create the native image using mvn spring-boot:build-image. The image is created and I am able to run it locally using docker. I created the AWS Lambda function using this…
2
votes
1 answer

Error when deploying Lambda Docker using AWS CDK

I'm following https://sbstjn.com/blog/aws-cdk-lambda-docker-container-example/ and deploying Lambda Docker using AWS CDK. On 'cdk deploy' I get the following error. Link to my github repo is https://github.com/aqilzeeshan/cdk_dockerlambda Can anyone…
funtyper
  • 165
  • 1
  • 9
1
vote
0 answers

Do containers in Lambda container functions have access to all of the memory/cpu the lambda function has access to by default?

I am running a lambda container function. The lambda function is configured with 10240MB of memory. On execution of the lambda, my container is being killed with a SIGSEGV error, meaning it has run out of memory. However, the logs show that the max…
1
vote
0 answers

Problem implementing a custom AWS Lambda Runtime

I am trying to implement a custom runtime in AWS Lambda. I have built the dockerfile and it runs in my local environment fine, including with the aws-lambda-rie. Running the built image locally like this, works fine. docker run -p 9000:8080…
1
vote
0 answers

curl: (7) Failed to connect to localhost port 9000

We are using AWS Lambda runtime interface emulator to run our app locally inside Docker using lite-server I start my docker container with: docker run -p 9000:8080 image-name The curl http://localhost:9000 command is returning curl: (7) Failed to…
priya1209
  • 11
  • 2
1
vote
1 answer

AWS Lambda, Chrome, Chromedriver selenium.common.exceptions.WebDriverException: "unable to discover open window in chrome"

Any help would be greatly appreciated. Really feel like I am sooo close...and yet so far. Sigh. I created a docker container using the following dockerfile. I ran the docker container on my desktop and it worked fine. I am using: Selenium version: …
1
vote
1 answer

AWS Lambda - Python - ModuleNotFoundError: No module named 'pandas'

I'm running into errors, no matter how many different configurations I try. Activating Conda env - wfl Conda env, wfl, activated Setting up…
1
vote
0 answers

Running TagUI RPA as a Lambda Function

I am trying to run a simple TagUI flow as a Lambda function using container images. I have made a Dockerfile using the bootstrap and function.sh from this tutorial: FROM amazon/aws-lambda-provided:al2 RUN yum install -y wget nano php…
RikT
  • 91
  • 6
1
vote
0 answers

Aws Lambda Allias stuck at Update In Progress stage

This is my cft for my aplication sharing below and it is created successfully for first time ,while I am updating the cft (codechange) ,the LambdaAllias is stuck in Update In Progress stage .Could someone please guide me on this…
1
vote
6 answers

Lambda docker base - unable to install matplotlib

I'm using docker-backed lambdas with the AWS-provided base image for python3.8. It looks like it tries to build matplotlib from scratch, then fails out with gcc related errors. The repro is straightforward, just try to build the following…
alex9311
  • 1,230
  • 1
  • 18
  • 42
1
vote
1 answer

Can we deploy asp.net web application as AWS lambda function ( as container image )

Recently AWS announced container support on lambda. i.e. Lambda function as a container image, where we can deploy a limited-sized containerized application to AWS lambda. So I created containerized asp.net core razor pages web application and…
1
2 3