Lambda with Oracle DB connection

lambda
aws

#1

Hi All,

I am trying to connect with with Oracle DB from AWS lambda using Python. I am able to test the functionality locally, for this we need to have 2 set-up…

  1. Install cx_Oracle 2) Configure Oracle client

I have put the dependency in serverless.yml file for point-1 as below ,
include:
- include-cx_Oracle-7.0.0-cp37-cp37m-manylinux1_x86_64.whl

But getting error as <Unable to import module ‘handler’> , Can anyone please help on this?

Also is there any way we can execute command at the of configuration , so that we can pass come command in YML file and at the time of deployment it will install and configure the items.


#2

Any can please help on this. or what is best approach for the same?