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

Adding support for environment variables #97

Closed
wants to merge 9 commits into from

Conversation

BrunoCarrier
Copy link

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 and others added 9 commits January 3, 2017 07:32
When configuring the S3 bucket event the function `add` builds the `LambdaFunctionConfigurations` which specifies the `LambdaFunctionArn`. The ARN should be the functions *exact* ARN and not suffixed by the environment ex.`arn:aws:lambda:us-west-1:1234567890123:function:bigquery_commit:main-env`.

It makes the Lambda UI and the S3 event sources UI confused as they don't recognize that the specific Lambda function even exists.

The reason why I made this change is because I had problems applying the bucket event cross-account and could not do this without this change.
SNS events need to be given the lambdaInvoke permission so that they can
call the lambda function.

Fixes garnaat#76.
@BrunoCarrier
Copy link
Author

I'm not sure why 8 other commits were bundled in here, since I forked from the main repository lately. Any idea?

@josegonzalez
Copy link
Contributor

You probably branched from master and are pull requesting to develop.

@BrunoCarrier
Copy link
Author

Nah they're both from develop - "BrunoCarrier wants to merge 9 commits into garnaat:develop from BrunoCarrier:develop"

@BrunoCarrier
Copy link
Author

@josegonzalez @garnaat, is there anything needing to be done so that this is included in the next release? Is there an ETA for the next release?

@josegonzalez
Copy link
Contributor

ETA is whenever someone gets to it. I have a day job that pays bills, open source does not. I'll look at this when I get a chance.

Note: you'll need to figure out how to remove all those extra commits from the pull request.

@BrunoCarrier
Copy link
Author

@josegonzalez That sounds good and is absolutely understandable :-) I appreciate the reply

I've fixed the extra commits issue through this other pull request:#98

Consequently, I will close this current PR

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

Successfully merging this pull request may close these issues.

4 participants