- Le plus récent
- Le plus de votes
- La plupart des commentaires
Hi,
re:Post is not the right place to report bugs: AWS service teams usually do not monitor this site to get aware of those reports.
The right place to go is the AWS service console, which has features to open such tickets for any service. So, please, go there to announce this issue. Additionally, you will be able to assign it to the right priority level to raise more attention if needed.
Best,
Didier
Hello.
I have confirmed its operation as well.
Indeed, the subscriptions did not disappear, but remained.
The following shell script can be used to delete subscriptions not associated with SNS topics.
#!/bin/bash
# Get a list of SNS topics
topics=$(aws sns list-topics | jq -r '.Topics[].TopicArn')
# Get a list of SNS subscriptions
subscriptions=$(aws sns list-subscriptions)
# Remove subscriptions not tied to a topic
echo $subscriptions | jq -c '.Subscriptions[]' | while read subscription; do
subscriptionArn=$(echo $subscription | jq -r '.SubscriptionArn')
topicArn=$(echo $subscription | jq -r '.TopicArn')
# If the topicArn of the subscription is not included in the topics, delete it.
if ! echo $topics | grep $topicArn > /dev/null
then
aws sns unsubscribe --subscription-arn $subscriptionArn
echo "delete it: $subscriptionArn"
fi
done
Note that
aws sns list-subscriptions
will only return a limited set of subscriptions (up to 100). Thus this script will not work as expected when there is a large number of subscriptions.
Contenus pertinents
- demandé il y a un an
- demandé il y a 3 mois
- demandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 8 mois
- AWS OFFICIELA mis à jour il y a 7 mois
"Technical support is unavailable under the Basic Support plan", so no luck.
If there is a way to submit a bug report other than creating a "support case" (which I apparently cannot do) please let me know..