In my case, process.env was returning undefined because of my func name "Process". Like
exports.handler = async (event) => {
try {
await process();
I have change function name from process to another name like call_process which is resolved my issue