Category : aws-lambda-containers

I have Dotnet Core AWS Lambda application created using dotnet new -i Amazon.Lambda.Templates and dotnet new serverless.AspNetCoreWebAPI, I am using a custom docker container image for this Lambda function. I can deploy the Lambda function using the dotnet lambda deploy-serverless command, however I want to build the image and push the image in AWS Codebuild. ..

Read more

it’s my Dockerfile # python3.8 lambda base image FROM public.ecr.aws/lambda/python:3.8 # copy requirements.txt to container COPY requirements.txt ./ # installing dependencies RUN pip3 install –upgrade –ignore-installed pip setuptools RUN pip3 install -r requirements.txt # Copy function code to container COPY feature_info.py ./ COPY s3_file ./ COPY app.py ./ # setting the CMD to your handler ..

Read more

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 Dockerfile: FROM amazon/aws-lambda-python:3.8 RUN yum -y install gcc RUN pip3 install –upgrade pip RUN pip3 install matplotlib ..

Read more

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 tell me please what is the problem ? Thanks Do you wish to deploy these changes (y/n)? y CdkLambdaDockerStack: deploying… [0%] start: Publishing dcfb2f152c6c0b2ca779c90dee5d59d3b510805a3ed884b310200624e32a4b27:current Error: write EPIPE at ..

Read more

I would like to know the reason why my project does work locally but not as an image based lambda function in my account? Following commands I perform locally: docker build -t lambda-repository . docker run -p 9001:8080 lambda-repository:latest And in another terminal: curl -XPOST "http://localhost:9001/2015-03-31/functions/function/invocations" -d ‘{}’ This results in: "Google"% What happens in ..

Read more