Environment variables not available after await in node.js

Hello,

I’m facing a really strange issue in some lambda function (randomly) : i cannot access environment variables after an ‘await’. For example :

console.log(process.env.myVar) // Output : "content of my var"
await someAsyncFunction()
console.log(process.env.myVar) // Output : undefined

Does anyone ever faced this issue ?

Thanks in advance !