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
19
votes
5 answers

How to publish sns to a specific endpoint?

I have a issue with publishing sns to a specific endpoint. My code: var AWS = require('aws-sdk'); AWS.config.loadFromPath('/web/config.json'); var sns = new AWS.SNS(); sns.publish({ // TopicArn:'arn:aws:sns:us-west-2:302467918846:MyTestTopik', …
Alex Cebotari
  • 291
  • 2
  • 4
  • 9
18
votes
2 answers

Is there a GCP equivalent to AWS SQS?

Im curious to understand the implementation of GCP's PubSub. Although Pubsub seems to point to follow a Publish-Subscribe design pattern, it seems more close to AWS's SQS (queue) than AWS SNS (that use publish-subscribe model). Why is think this is,…
18
votes
2 answers

AWS Lambda Function always returns null (Node/Javascript)?

I have a simple Lambda function that is supposed to take event data and send a message to an SNS topic. Runtime is Node.js 8.10. Here's my Lambda code in its entirety: const AWS = require("aws-sdk"); exports.handler = async (event) => { const sns…
Z_z_Z
  • 1,057
  • 4
  • 12
  • 22
18
votes
3 answers

AWS SNS subscription keeps deleting the subscription itself

I subscribed to a SNS topic with an endpoint of an email address. I have received notice of unsubscribing from the topic lastnight, I asked all who had access to the inbox, nobody clicked the unsubscribe link. I recreated the subscription and this…
Gapton
  • 2,044
  • 2
  • 20
  • 33
18
votes
2 answers

AWS push notification service integration error

I am trying to integrate Amazon Push Notifications to my iPhone app. I did follow the tutorial provided here correctly. I am getting this error when creating the Platform EndPoint. (Seems a permission issue with identity…
smartsanja
  • 4,413
  • 9
  • 58
  • 106
18
votes
3 answers

Anyone using Node.js with Amazon SNS and Apple Push Notifications?

I'm looking for examples of using node.js with Amazon SNS and Apple APN push notifications. We use Amazon for our hosting, and I have used SNS before, it's pretty simple. But the examples they have for push notifications are for java, and there is…
16
votes
2 answers

Browser notification using AWS SNS

I am new to Amazon services. I already used FIREBASE and PUBNUB for browser notification in other applications. I would like to build browser notification like FIREBASE or PUBNUB using AWS SNS. For web application front end I am using ReactJs and…
Sarath
  • 1,459
  • 3
  • 22
  • 38
16
votes
5 answers

AWS SNS - How to get topic arn by topic name

In my application i need to send messages to the given topic name. The topic is already created by other person and in a config file they give only the topic Name. My work is to push the messages in the given topic Name. Is there any way to get…
Gowsikan
  • 5,571
  • 8
  • 33
  • 43
16
votes
2 answers

Amazon SNS: an offline mock

Is there an AMAZON-SNS mock? That is, some non-hosted version that I can use for testing or for offline cases? Preferably with the same API. Like elasticMQ is for SQS? Thank you
user967710
  • 1,815
  • 3
  • 32
  • 58
16
votes
3 answers

Sending Amazon SNS from my PHP server

I have an application both in Android and iOS platforms. Both of them are registered with Amazon SNS. This is successfully done, because if I have the device tokens, then I can login to my applications dashboard in Amazon, and can send SNS from…
zinnuree
  • 1,111
  • 2
  • 10
  • 21
15
votes
2 answers

Subscribe a sqs queue to a sns topic that is in a different account, using aws cdk(typescript)

I would like to connect an sqs queue to an sns topic that is in a different account, using cdk (typescript). Below is the code (this code is in a stack) that I think should work but I have some doubts listed below the code (I have not deployed this…
15
votes
2 answers

AWS CodeCommit: Repository Notifications vs Repository Triggers

Notifications: https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-repository-email.html Triggers: https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-notify.html The official document states that for CodeCommit repository…
15
votes
2 answers

Naming conventions for SNS / SQS

In an ETL process we are implementing we will create an Amazon SNS topic which will send messages to an Amazon SQS queue. In the documentation we didn't see a particular spec regarding names so I was wondering if someone could recommend best…
Aurélien
  • 151
  • 1
  • 1
  • 4
15
votes
3 answers

AWS Mobile Push with users that may be logged into multiple devices

Our apps are being developed for both Android and iOS. We are using AWS SNS Mobile Push to push messages to both GCM and APNS. The back end is PHP and so it uses the AWS PHP SDK. Until now, our system has been saving 1 Endpoint ARN per user. We then…
15
votes
1 answer

Sending attachment using AWS SNS(Simple Notification Service)

I am using AWS SNS for sending alert emails. Now the email content is really long therefore I wish to send it as a file attachment rather than sending it as a email content. Can this be done using SNS ?
Shubham Mishra
  • 1,053
  • 4
  • 13
  • 23