Skip to content
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

Not currently overriding existing environment variables when using envfile #249

Open
kylerc opened this issue May 30, 2024 · 0 comments
Open

Comments

@kylerc
Copy link

kylerc commented May 30, 2024

Right now if you specify envfile when calling a local lambda, that file's variables do not override existing environment variables that are already set. For our use case, overriding would be preferable and also that had been our initial expectation for how the envfile setting would work which was not the case. Would be nice if this could either change or expose an option to opt into overriding existing environment variables.

We were able to work around this issue in our usecase by loading the desired environment file and passing it in as an object to the environment when calling lambda-local which does override the existing environment variables, but those behaving differently seems unexpected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant