Questions tagged [amazon-sns]

Amazon Simple Notification Service is a highly available, cloud hosted publish/subscribe manager.

Amazon Simple Notification Service is a highly available, cloud hosted publish/subscribe manager. A user creates an SNS topic and other users subscribe to it. When a message is published to a topic it is pushed to each subscriber.

2929 questions
29
votes
5 answers

Confirming AWS SNS Topic Subscription for Slack Webhook

I am integrating SNS and Slack. I have created a slack app with incoming webhook enabled. I have got the webhook URL. I created a subscription for a SNS Topic with HTTPS protocol and set the Endpoint the webhookURL. Now the subscription is…
Manoj Acharya
  • 1,331
  • 2
  • 15
  • 27
29
votes
3 answers

AWS SNS workaround for 100,000 topics limit

I am developing an architecture for push notifications using AWS SNS with APNS and GCM. The model that I am following is Each user (not device) will have an SNS topic corresponding to it Each user can have multiple devices Create an platform…
Mandeep Singh
  • 7,674
  • 19
  • 62
  • 104
28
votes
2 answers

AWS cloudformation error: Template validation error: Template error: resource NotificationsTopic does not support attribute type Arn in Fn::GetAtt

I am trying to create an AWS cloudformation stack using a yaml template. The goal is to create a sns topic for some notifications. I want to output the topic arn, to be able to subscribe multiple functions to that topic by just specifying the topic…
28
votes
4 answers

How to add SQS message attributes in SNS subscription?

The documentation for AWS SNS and SQS have sections about message attributes. But there is no explanation how to have SQS message attributes when that queue is subscribed to a SNS topic. Is there a way to configure AWS SNS to add particular message…
Evgeny
  • 6,533
  • 5
  • 58
  • 64
28
votes
2 answers

Authorization when sending a text message using AmazonSNSClient

The official aws documentation on how to send a Textmessage with the aws SDK in java is pretty straightforward. However, when sending a message like shown in the example at the bottom, I'm getting the error User: arn:aws:iam::xxx:user/sms-testing is…
pulse00
  • 1,294
  • 1
  • 16
  • 25
28
votes
4 answers

AWS SQS not receiving SNS messages

I created a SNS topic that publishes all the information coming out of Cloudformation via the cli. However, when I check the queue, it is not receiving any of the SNS messages. I verified the SNS is working by subscribing my email to it, so the…
asdf
  • 2,927
  • 2
  • 21
  • 42
28
votes
3 answers

How to send an SMS with custom sender ID with Amazon SNS and Python and boto3

The documentation suggests to use message attributes for that but I can't seem to figure out what attribute name to use. This works so far: sns = boto3.client('sns', region_name='eu-west-1') sns.publish( PhoneNumber='+491701234567', Message='hi…
tgal
  • 381
  • 1
  • 3
  • 4
26
votes
8 answers

AWS SNS is not sending SMS anymore

I have been using Amazon SNS to send SMS for a while, but two days ago it stopped working. I didn't change anything on my side. Even if I try to send SMS from the console, it still doesn't work. I only have 35% delivery rate for last couple of days,…
ali
  • 1,023
  • 2
  • 14
  • 38
26
votes
9 answers

AWS API-Gateway communicating to SNS

I am building an API which will be serviced by Lambda functions but I need these to be asynchronous so rather than connecting the API-Gateway directly to the Lambda function I'm using the "AWS Service Proxy" to publish SNS messages and then have the…
ken
  • 8,763
  • 11
  • 72
  • 133
26
votes
2 answers

How do push notifications work?

I'm trying to implement push notifications on my PHP-based website. The goal is to make something similiar to what Stackoverflow and other sites have which notify a user in real-time when they get messages. I'm using mysql as my database, Apache as…
tim peterson
  • 23,653
  • 59
  • 177
  • 299
25
votes
7 answers

AWS SNS ought to trigger my lambda, but does not

I have an AWS lambda function that I created via apex. I've also created a SNS topic and a subscription through terraform. My topic is: arn:aws:sns:ap-southeast-1:178284945954:fetch_realm_auctions I have a subscription:…
Kit Sunde
  • 35,972
  • 25
  • 125
  • 179
24
votes
2 answers

Push notifications: Why use Amazon SNS over Google's GCM/FCM?

I have created a mobile app for Android and iOS using Phonegap Build. Last year I had nearly finished writing code to use GCM (Google Cloud Messaging) for remote push notifications - which can go out via Apple's APNS too - but the project was…
24
votes
6 answers

How to setup permissions for S3 event to SNS topic?

I am trying to create an event on an S3 bucket (named testBucket) so that every time a new object is created, a message is sent to SNS. I've done some research and added: "ArnLike": {"aws:SourceArn": "arn:aws:s3:*:*:testBucket"} to the target…
ChenL
  • 1,032
  • 1
  • 10
  • 18
23
votes
2 answers

Is it possible to receive an Amazon SNS message on a JS script?

I know some options using ruby on rails and/or node.js and PubNuB, a service that has many APIs so you can send/receive notifications between (almost) any platform. I now how to send messages from PHP and how to receive them there using Amazon SNS,…
tvdias
  • 821
  • 2
  • 10
  • 25
23
votes
3 answers

What is in the JSON payload Cloudwatch sends to SNS? How can I read that data?

I'm trying to parse data with Lambda when an alarm is triggered in Cloudwatch. I am currently using SNS to trigger the lambda; however, I want to know what data is being sent to that Lambda so that I can parse it correctly. How can I read the JSON…