Is there a way to find a list of SNS topics where a given AWS Account ID has PUBLISH (or any other) permissions?
My use case is as follows:
- A server program allows different clients to post messages onto an SNS topic that it owns. The server program has these SNS topics in various AWS regions.
- Each client is granted “Publish” permission on the SNS topic, in each AWS region.
- The client is given the name of the topic and based on the region, it has to derive the topic ARN and publish messages.
I would like to avoid maintaining the ARNs of these topics, by AWS region and distribute them in a client config and was wondering if there is a way for the clients to derive the Topic ARN based on the Topic Name and the AWS Region, through some API provided by AWS (and not form the ARN as aws:${region}:sns:${topicName}
.