-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
SNS Environment Error with the new version of zappa 0.37.0 #684
Comments
Hm, this comes from replacing Kappa with a new version. There was an S3-specific hack that was removed, its possible we still need it for S3. Does this get fixed if you install kappa==0.6.0 ? |
It looks like I'm on 0.6.0 according to my requirements. txt. appdirs==1.4.0 |
That's interesting, can you try upgrading to 0.7.0? |
Mmy mistake. requirements.txt is listing 0.6.0 but the env has 0.7.0 actually installed. (maybe from the upgrade) I ran |
Okay, the confusing here is that that this guy says the exact opposite thing: So - which is the problem? |
So Strange. Here is my pip freeze (still have the console open) from when it was throwing the error.
As a test, upgraded back to 0.7 from 0.6 and now it fails again. Maybe ask #681 for the output of their `╰─$ pip install -I kappa==0.7.0 ╰─$ zappa update |
I'm also getting this error since upgrading, forcing kappa to be at 0.6.0 fixed it |
Possibly fixed in 0.37.2, let me know if not and I'll reopen. |
Ran pip --upgrade zappa and now I am getting this error on a deployment that was working when running zappa update.
Scheduling..
Yes, using virtual envUnscheduled em7anno-zap-prod-zappa-keep-warm-handler.keep_warm_callback.
ERROR:Unable to remove lambda execute permission to SNS event source
Traceback (most recent call last):
File "/Users/lw-mfiorentini/.virtualenvs/lw_em7_annotate/lib/python2.7/site-packages/kappa/event_source/sns.py", line 94, in remove
StatementId=function.name+'_'+self.context.environment)
AttributeError: 'PseudoContext' object has no attribute 'environment'
Removed event service.handler.
ERROR:Error adding lambdaInvoke permission to SNS event source
Traceback (most recent call last):
File "/Users/lw-mfiorentini/.virtualenvs/lw_em7_annotate/lib/python2.7/site-packages/kappa/event_source/sns.py", line 61, in add
StatementId=function.name+''+self._context.environment,
AttributeError: 'PseudoContext' object has no attribute 'environment'
Created * event schedule for service.handler!
Scheduled em7anno-zap-prod-zappa-keep-warm-handler.keep_warm_callback!
Expected Behavior
It should not throw this error. It does look like it deployed OK , still working on seeing what actually failed. Since this
Actual Behavior
Possible Fix
Steps to Reproduce
Your Environment
zappa_settings.py
:{
"prod": {
"app_function": "service.handler",
"s3_bucket": "zappa-f9ukazi8o",
"apigateway_enabled": false,
"project_name": "em7anno-zap",
"aws_region": "us-west-2",
"timeout_seconds": 120,
"role_name": "automation-v2-lambda-execution",
"events": [
{
"function": "service.handler", // The function to execute
"event_source": {
"arn": "arn:aws:sns:us-west-2:475806025084:lw-em7tovictorops-lambda", // The ARN of this event source
"events": [
"*" // The specific event to execute in response to.
]
}
}
]
}
}
The text was updated successfully, but these errors were encountered: