Closed msalidu closed 4 years ago
Environment variables are not supported by Lambda@Edge as specified in the limitations documentation. :(
@msalidu correct. We have to remove the env vars because Lambda@Edge doesn't support them. If you need dynamic variables put into your L@E environment, you might try something like this: https://www.npmjs.com/package/dotenv
@msalidu also, this may be helpful to you: https://www.serverless.com/plugins/serverless-dotenv-plugin/
The enviroments variables disappear in the generated template:
Template:
Thanks a lot, Massimo