How to used trp.trp2 package use inside AWS lambda as layer ?

0

I am created trp.trp2 layer in AWS lambda but that layer is not working for my lambda code to import trp.trp2 as t2 How to used trp.trp2 package use inside AWS lambda as layer ? (For python code only)

amogh
已提问 2 年前507 查看次数
1 回答
0

Try using docker to create a Lambda Layer by following steps.
It works in my environment.

docker run --rm -v $(pwd):/var/task public.ecr.aws/sam/build-python3.9:latest pip install amazon-textract-response-parser -t python/lib/python3.9/site-packages/
zip -r amazon-textract-response-parser.zip ./python > /dev/null
aws lambda publish-layer-version --layer-name amazon-textract-response-parser --zip-file fileb://amazon-textract-response-parser.zip --compatible-runtimes python3.9
profile picture
hayao-k
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则