By using AWS re:Post, you agree to the Terms of Use

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)

asked 11 days ago17 views
1 Answer
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
answered 10 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions