-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Environment variables are not available #83
Comments
Just ran into this myself. Are there any workarounds? |
I am facing the same issue. Getting undefined for environment variables |
I know this issue is a bit old, but I'm too facing it, but only for a specific use case. But any environment variable defined at a function level cannot.
For now I duplicate this function's env. variables in a dedicated json file, but being able to not duplicate them (and risk out-of-sync issue) would be great. |
I'm having this same issue with // variable in serverless.yaml
custom:
DeviceDatabase: ${cf.us-west-1:my-stack.DeviceDatabase} As this issue is is from 2018 I don't know if this plugin is still in support |
I did some testing and this seems to work as expected with latest version of the plugin and sls v1.58.0. I got both environment variables into the lambda. |
I will try to test this scenario. I'm not sure when Cloudformation references are resolved or are they handled actually the Cloudformation deployment.
We currently don't have a much time to support these plugins, so we appreciate contributions to resolve the issues. |
The text was updated successfully, but these errors were encountered: