arabold / serverless-export-env

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

file vars are not rendered #16

Closed protoblade closed 5 years ago

protoblade commented 5 years ago

It seems that the collectEnvVars() does not take into account file references and does not render them properly

Example serverless.yml

provider:
  environment:
    testvalue: ${file(vars/${self:provider.stage}.json): testvalue
    stackName: teststring

generated .env

testvalue=${file(vars/dev.json):testvalue
stackName=teststring