AWS Lambda, Secrets Manager and .pem file #329
-
Hi Everyone, I need to connect to the DB, using thin-client. so I've stored the .pem file in secrets manager, in lambda I can create file in /tmp folder, is there way to pass the variable directly. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
ewallet.pem and tnsnames.ora is stored in secrets manager --> lamba fetch the secret --> create dir '/tmp/config_dir/', then creating two files in it ewallet.pem and tnsnames.ora issue was when I stored wallet credential in secrets manager. it removed the Line feed, so I converted .pem to base64 then stored in secret manager |
Beta Was this translation helpful? Give feedback.
Python requires that the .pem file be on disk for the regular ssl module to work. There are other ways but these are not part of the standard library which python-oracledb uses for its TLS support.