Closed jneves closed 4 months ago
Hi there! Unfortunately, this Issue has not seen any activity for at least 90 days. If the Issue is still relevant to the latest version of Zappa, please comment within the next 10 days if you wish to keep it open. Otherwise, it will be automatically closed.
Hi there! Unfortunately, this Issue was automatically closed as it had not seen any activity in at least 100 days. If the Issue is still relevant to the latest version of Zappa, please open a new Issue.
Originally from: https://github.com/Miserlou/Zappa/issues/1898 by yellowcap
Subscriptions to topics for which the user does not have the permissions for the
SNS:ListSubscriptionsByTopic
operation fail. This makes everyupdate
operation fail, as theschedule
command is ran during the update routine.Context
It looks like the error happens in the kappa sns event_source object, when trying to run the
exists
method. This method uses thelist_subscription_by_topic
method, which requires the list permissions on the topic.Expected Behavior
The topic subscription should be successful.
Actual Behavior
An
AuthorizationErrorException
is raised.Possible Fix
Replace the
list_subscriptions_by_topic
withlist_subscriptions
boto3 function in theexists
method of theSNSEventSource
class from kappa.Steps to Reproduce
Set the event subscription provided below and run the
zappa update
command.The error from the concrete use case:
Your Environment