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
717
votes
9 answers

What is the difference between Amazon SNS and Amazon SQS?

When would I use SNS versus SQS, and why are they always coupled together?
Nick Ginanto
  • 31,090
  • 47
  • 134
  • 244
105
votes
8 answers

FCM with AWS SNS

I am using AWS resources for my android project, I am planning to add push notification service for my project with AWS SNS.there are few questions bothering me much. I did not find any questions regarding these, except one or two but with unclear…
90
votes
3 answers

Can you publish a message to an SNS topic using an AWS Lambda function backed by node.js?

Can you publish a message to an SNS topic using an AWS Lambda function backed by node.js?
Gary Sharpe
  • 2,369
  • 8
  • 30
  • 51
84
votes
10 answers

AWS SDK for PHP: Error retrieving credentials from the instance profile metadata server

I am trying to send SNS messeges to android through web api. Downloaded and installed the SDK from http://aws.amazon.com/developers/getting-started/php/ Got following error while running sample.php: Fatal error: Uncaught exception…
79
votes
6 answers

SNS to Lambda vs SNS to SQS to Lambda

I'm trying to understand whether I need SQS in my workflow if someone can help explain. In my app, when an action is taken, it submits info to SNS topic which invokes Lambda to do some processing. This is working great as it is. When I do research…
Saumil Shah
  • 1,383
  • 2
  • 11
  • 20
63
votes
2 answers

When Lambda is invoked by SNS, will there always be just 1 record?

When receiving events in Lambda from SNS the outer structure of the event will look somewhat like: { "Records": [...] } In all the tutorials I have seen there has only ever been 1 record in the records field. Is it safe to make the assumption that…
RckMrkr
  • 985
  • 1
  • 10
  • 14
58
votes
10 answers

SNS topic not publishing to SQS

I am trying to prototype a distributed application using SNS and SQS.I have this topic: arn:aws:sns:us-east-1:574008783416:us-east-1-live-auction and this queue: arn:aws:sqs:us-east-1:574008783416:queue4 I created the queue using the JS Scratchpad.…
user427875
  • 1,245
  • 2
  • 11
  • 16
58
votes
9 answers

Getting "EndpointDisabled" from Amazon SNS

I'm using Amazon SNS. Notifications work well, but sometimes I get this error: { "message": "Endpoint is disabled", "code": "EndpointDisabled", "name": "EndpointDisabled", "statusCode": 400, "retryable": false } Maybe you know…
user2881338
  • 581
  • 1
  • 4
  • 3
55
votes
6 answers

How to delete a unconfirmed AWS SNS subscription

I am trying to delete a subscription to an SNS topic (specifically an email address) that is unconfirmed, but the AWS console won't let me. It will let me delete subscriptions that are confirmed however. Any ideas?
wjimenez5271
  • 2,027
  • 2
  • 17
  • 24
49
votes
3 answers

AWS: Publish SNS message for Lambda function via boto3 (Python2)

I am trying to publish to an SNS topic which will then notify a Lambda function, as well as an SQS queue. My Lambda function does get called, but the CloudWatch logs state that my "event" object is None. The boto3 docs states to use the kwarg…
bmoran
  • 1,499
  • 2
  • 13
  • 21
41
votes
1 answer

Sending html content in AWS SNS(Simple Notification Service) emails notifications

I am using AWS SNS(Simple Notification Service) to send email notifications. In the content of the email, I have to represent data in tabular form. Currently I am using simple text string to print the table but that has formatting issues when the…
Shubham Mishra
  • 1,053
  • 4
  • 13
  • 23
39
votes
7 answers

AWS Lambda NoClassDefFoundError

I am having difficulty with a Java based Lambda function setup to receive messages from SNS. My function looks like the below: package com.mycompany; import com.amazonaws.services.lambda.runtime.Context; import…
Brooks
  • 7,099
  • 6
  • 51
  • 82
36
votes
5 answers

How can i confirm the subscription request HTTP from amazon SNS

I have been searching all over the web and nothing gives a clear answer to confirm the subscription request from amazon SNS. I already send the subscription from the amazon console to my website, but what's next? I am using amazon EC2 as my server…
Fernando Santiago
  • 2,128
  • 10
  • 44
  • 75
32
votes
3 answers

How to specify Android notification channel for FCM push messages in Android 8

Our app now has targetSdkVersion 26 (Android 8) and the app uses FCM push notifications. As FCM documentation prescribes I updated the FCM client library to version 11.2.0: dependencies { compile…
31
votes
6 answers

The AWS Access Key Id needs a subscription for the service

I'm getting following error when tried to create topic for amazon sns : The AWS Access Key Id needs a subscription for the service (Service: AmazonSNS; Status Code: 403; Error Code: OptInRequired; Request ID: …
Mr. Engineer
  • 3,522
  • 4
  • 17
  • 34
1
2 3
99 100