mojodna / osm-pds-pipelines

OSM PDS pipeline
https://quay.io/repository/mojodna/osm-pds-pipelines
ISC License
32 stars 4 forks source link

Unable to unsubscribe Lambda Function #44

Closed grfortun closed 1 year ago

grfortun commented 1 year ago

I subscribed to the SNS topic with my Lambda function. I am now unable to remove the SNS subscription as the Lambda trigger. I assume the when removing the trigger it first lists SNS subscriptions then matches it before calling the Unsubscribe with my subscription ARN. ExternalSNSdeleteissue

mojodna commented 1 year ago

This is likely an issue with the IAM policy associated with your active role. Check that it contains sns:istSubscriptionsByTopic (or an sns:* wildcard of some sort). This is not a problem with the account hosting the topic (+ S3 bucket).