So I’m often making serverless Python programs on AWS Lambda, and often I need to add dependencies. You can add these using a zip file or a Dockerfile (see aws documentation). Now I think a zip file works just fine, but a Dockerfile is of course a much newer and more advanced technology. However I’m ..
moto currently allows for very powerful tests by emulating Lambda, Batch and other services through Docker. One con of this is requirement for availability of docker and slow tests (single submit_job test with docker runs in around 2 seconds). Is there a way to ignore docker when running moto mocks and shim/stub docker support by ..
Collecting Flask==1.1.2 Downloading Flask-1.1.2-py2.py3-none-any.whl (94 kB) Collecting tensorflow==2.4.0 Downloading tensorflow-2.4.0-cp38-cp38-manylinux2010_x86_64.whl (394.8 MB) ERROR: Exception: Traceback (most recent call last): File "/var/lang/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 171, in _merge_into_criterion crit = self.state.criteria[name] KeyError: ‘tensorflow’ During handling of the above exception, another exception occurred: File "/var/lang/lib/python3.8/site-packages/pip/_vendor/cachecontrol/filewrapper.py", line 52, in _close self.__callback(self.__buf.getvalue()) File "/var/lang/lib/python3.8/site-packages/pip/_vendor/cachecontrol/controller.py", line 309, in cache_response cache_url, self.serializer.dumps(request, response, ..
I am trying to set up a headless Chromium browser in AWS Lambda using a docker container. My Dockerfile looks like this # Build stage # ———— FROM public.ecr.aws/lambda/nodejs:14 AS builder RUN yum install -y make # Install dependencies ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true" WORKDIR /usr/src COPY package*.json . COPY tsconfig*.json . RUN npm ci # build Typescript ..
Trying to build a docker based lambda using SAM and test it locally within a docker-compose, as the lambda needs to server other components built by the compose. Thing is, SAM itself runs in a container which means that I’m not clear on how to build that container within the docker-compose file and have it ..
Background: Our team is trying to run UI performance testing on lambda. Right now we are running performance test cases uploading our code a zip file on lambda. The challenge here is we are hitting lambda zip file size limit of 50 MB as our application is continuously growing. Then we came across the Lambda ..
I’m testing my lambda function wrapped in a docker image and provided environment variable AWS_PROFILE=my-profile for the lambda function. However, I got an error : "The config profile (my-profile) could not be found" while this information is there in ~/.aws/credentials and ~/.aws/config files. Below are my commands: docker run -e BUCKET_NAME=my-bucket -e AWS_PROFILE=my-profile-p 9000:8080 <image>:latest ..
I want to create a function to create a pdf from a HTML file and trigger it from AWS Lambda. I have put the function inside a docker image and deployed the docker image to AWS Lambda. It is working fine when I run the docker locally, but when I deploy it to AWS Lambda, ..
I am using a docker container image on lambda to run my ML model. My lambda function has a S3 trigger to fetch images. I am trying to run my lambda function but I am getting this error. Can someone please help me? Source: Docker..
I developed a spring boot-microservices application in which each microservice is packaged into a separate docker container. The databases for these services are also in separate docker containers. Currently, all these are hosted and running in AWS ECS. If I need to migrate to Lambda, can I reuse the same docker containers as such? (of ..