1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Hello.
I tried it in my environment and was able to upload and read the xlsx file along with Lambda.
The steps are as follows.
mkdir python
cd python
pip install --target ./ openpyxl
vi lambda_function.py
# Include the xlsx file in your python directory.
zip -r ../python.zip .
cd ..
aws lambda update-function-code --function-name test --zip-file fileb://python.zip
In addition to the above method, there is also a method to register openpyxl as a Lambda layer, so please check that as well.
https://repost.aws/questions/QUmvP42wYQRiyOJmvDI5MVtA/error-while-running-python-code-in-aws-lambda-function#ANQ8ctoPV9Q72nMUr5mh8ulg
Contenus pertinents
- demandé il y a 2 mois
- demandé il y a 7 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 5 mois
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a un an