Can we create sns topic for application? I asked this because I have seen only examples that use Protocol=’email’ or ‘sms’ for subscribing to the topic using boto3. The requirement I have is that I want to create a topic and will subscribe to this topic using Endpoint Arn. So that when I publish notification to this topic it will be broadcasted to all its subscribers. So is it possible?
Question posted in Amazon Web Sevices
The official Amazon Web Services documentation can be found here.
The official Amazon Web Services documentation can be found here.
3
Answers
This issue is solved now. Our topic was a fifo topic and when we changed it to Standard Topic the subscribe function was working.
There are only two types of topics: Standard-Topics and FIFO (First in, first out) Topics.
What you’re referring to is the subscription. You can subscribe to an SNS topic using a variety of protocols:
Read the docs for more details: To subscribe an endpoint to an Amazon SNS topic
From your vague description, you’re probably looking for an HTTP/HTTPS subscription.
To reproduce your situation, I tried this code:
I don’t have a valid EndpointARN for a mobile app, so I received the error:
However, it does prove that
Protocol='application'
is accepted as valid input.I am using boto3 version
1.24.38
.