kappa
kappa copied to clipboard
KeyError 'EventSourceArn' when running status
Hi, I am very new to Kappa, and was using it to check the status of an existing lambda task we are using, and I get a key error for 'EventSourceArn':
File "/Users/ses/w/lemonade-tasks/venv/bin/kappa", line 125, in status
event_source['EventSourceArn'], event_source['State'])
KeyError: 'EventSourceArn'
(I suppressed the rest of the stack trace, it was just a few frames of click internals).
Here is the event_source
dict (the only event source I have for this lambda function in fact):
{u'Endpoint': 'arn:aws:lambda:eu-west-1:575.....:function:sendEmailVerificationEmail',
u'Owner': '575.....',
u'Protocol': 'lambda',
u'SubscriptionArn': 'arn:aws:sns:eu-west-1:575.....:accounts-email_verify_started:89abcdef-1234-1234-1234-456789abcdef',
u'TopicArn': 'arn:aws:sns:eu-west-1:575.....:accounts-email_verify_started'}
I suppressed our actual IDs and stuff.
I wouldn't mind fixing this issue myself, but as I am so new to lambda I'm not sure why it is happening or which of these fields should replace the EventSourceArn
in this case, or if this is a case of me having an incorrect boto version or something (boto3==1.1.0, kappa==0.3.1 FYI).
I just checked the kappa requirements and noticed boto3==0.0.22 there, so I cleaned my venv and installed that version:
$ pip freeze
boto3==0.0.22
botocore==1.0.0rc1
click==4.0
docutils==0.12
futures==2.2.0
jmespath==0.7.1
kappa==0.3.1
python-dateutil==2.4.2
PyYAML==3.11
six==1.9.0
wheel==0.24.0
Still getting the same error as before though.