Category : aws-lambda

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, ..

Read more

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 ..

Read more

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 ..

Read more