arabold / serverless-export-env

Serverless plugin to export environment variables into a .env file
MIT License
103 stars 34 forks source link

Environment Variables under functions not showing #36

Closed willa75 closed 2 years ago

willa75 commented 3 years ago

Hello there,

I am currently using serverless@2.5.2 and serverless-export-env@2.0.0. I am currently trying to export the environment variables used in a function (two dynamodb tables) with sls export-env --all, however, it still doesn't grab the environment variables under my functions. Would you be able to tell me how to resolve this issue?

AXSJ commented 2 years ago

I'm having the same issue

willa75 commented 2 years ago

@AXSJ I believe there is a flag you need to set on the more recent versions to overwrite the existing .env file. In the older version it did this automatically, but I was able to get it working later on