I am trying to use the python library fgsect/scat inside my aws lambda function. I have created a zip file with this library and set it as a lambda layer. I am looking for the correct way to call the python file scat.py with arguments.
e.g
python3 ./scat.py -t qc -d log.qmdl -F log.pcap
Things I have tried so far.
I have created the lambda layer with the following file structure
python/lib/python3.6/site-packages
and below is what I have in the lambda handler
import os
import scat
os.system("scat.py -t qc -d log.qmdl -F log.pcap")
This did not work (gives an error "sh: scat.py: command not found")
I am planning to use ephemeral storage to store both log.qmdl and log.pcap. Does anyone know how to use this library correctly with arguments inside the aws lambda function?