garnaat / kappa

What precedes Lambda
http://kappa.readthedocs.org/en/develop/
Apache License 2.0
902 stars 89 forks source link

Added environment variable support #98

Closed BrunoCarrier closed 7 years ago

BrunoCarrier commented 7 years ago

Hi, this pull request allows for environment variables to be used At the environment level, if the environment_variables key is present with a dictionary, it will add it to the update_configuration and create methods. Otherwise, it will send blank data which effectively removes any existing environment variables

The _check_config_md5 method will also consider changes in the yml file, and will update lambda function configuration if any change is detected

I added an example to the kamma-simple project

josegonzalez commented 7 years ago

Can you add docs for this?

BrunoCarrier commented 7 years ago

@josegonzalez Good point! I added docs for it :-)