silvermine / serverless-plugin-cloudfront-lambda-edge

Adds Lambda@Edge support to Serverless
MIT License
296 stars 41 forks source link

Lambda environment variables #75

Closed redwert closed 2 years ago

redwert commented 2 years ago

AWS started to support the lambda@edge environment variables. I can add it manually in Lambda->Configuration->Environment variables and use this variables in my code as process.env.MY_VAR

If I add environment variables to my lambda config that doesn't affect on environment variables in my lambda@edge. The list is clear. Could you please consider adding support for env variables

jthomerson commented 2 years ago

@redwert two things:

1) Please cite some AWS source that says that L@E supports env vars. Their docs still say they don't. 2) If they do, it must be supported by CloudFormation for us to make it work with this plugin. You could try commenting out this code in the plugin to see if it works.

Closing for now, but will re-open if you find that AWS really is supporting it.