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

Kinesis Event Source add function not working as expected #119

Open
olabhrad opened this issue May 4, 2017 · 1 comment
Open

Kinesis Event Source add function not working as expected #119

olabhrad opened this issue May 4, 2017 · 1 comment

Comments

@olabhrad
Copy link

olabhrad commented May 4, 2017

The Kinesis Event Source add function is not working as expected. When deploying the first time the function works fine. On subsequent deployments the exception is thrown:

-> Unable to add event source Traceback (most recent call last): File "/Library/Python/2.7/site-packages/kappa/event_source/kinesis.py", line 49, in add Enabled=self.enabled File "/Library/Python/2.7/site-packages/kappa/awsclient.py", line 86, in call data = op(**kwargs) File "/Library/Python/2.7/site-packages/botocore/client.py", line 253, in _api_call return self._make_api_call(operation_name, kwargs) File "/Library/Python/2.7/site-packages/botocore/client.py", line 557, in _make_api_call raise error_class(parsed_response, operation_name) ResourceConflictException: An error occurred (ResourceConflictException) when calling the CreateEventSourceMapping operation: The event source arn (<arn>) and function (<function>) provided mapping already exists. Please update or delete the existing mapping with UUID <UUID> done

This can be avoided by checking to see if the mapping exists first (list_event_source_mappings) and then calling either create_event_source_mapping or update_event_source_mapping based on the response.

@olabhrad
Copy link
Author

olabhrad commented May 4, 2017

PR: #120

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