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
1
vote
0 answers

AWS Regional failover with secondary Region having no resources running untill failover happens

I have an application running in N.Virginia Region. I want to configure Regional failover such that if my N.Virgina region or application goes down, same application should come up secondary Region. Initially secondary Region should not have any…
1
vote
2 answers

Protect data in transit when two lambda communicate via AWS SNS (simple notification service)

I am working on serverless architecture using AWS lambda where multiple modules/lambdas communicate via SNS (simple notification service). Due to compliance requirement that data in transit should be secure and encrypted, do I need to do that…
1
vote
0 answers

How to handle errors for AWS SNS Topic Subscription API?

I am calling the unsubscribe API of AWS using a subscription ARN as in the below code. UnsubscribeRequest request = new UnsubscribeRequest(subscriptionArn); UnsubscribeResult result = sns.unsubscribe(request); System.out.println("UnsubscribeResult…
1
vote
0 answers

send sns topic alert when a specific file is uploaded to s3

I want to create a cloudwatch event which will send a sns topic alert when a file starting with SampleSheet is uploaded to a s3 bucket. below configuration creates alert for every object uploaded to s3: { "source": [ …
nad87563
  • 3,672
  • 7
  • 32
  • 54
1
vote
2 answers

How to create Auto Pull request trigger in AWS CodeCommit?

I am new to Code Commit and know a little about git. I have root access to the repo Basically, I want to maintain code Commit branch (master). I want to implement trigger, (if possible) such as: All developers need to create their own branch from…
1
vote
1 answer

AWS SES sends same 'bounceRecipients' through SNS mulitple times

after the usual hair pulling efforts, I finally made AWSSimple Email Service push notifications to my REST end point through SNS and successfully applied the required business logic on those recipients. Points: You must be pushing multiple emails to…
mfaisalhyder
  • 2,250
  • 3
  • 28
  • 38
1
vote
1 answer

aws-sdk for Ruby: how to set message_attributes to Aws::SNS::Client?

I would like to set AWS.SNS.SMS.SenderID when sending SMS via Amazon SNS. This code successfully send message, but sender ID wan not MySenderID and instead phone number is shown. @sns_client ||= Aws::SNS::Client.new(region: "ap-northeast-1",…
yskkin
  • 854
  • 7
  • 24
1
vote
2 answers

Restrict outbound traffic to AWS SNS / SMTP

So I have an EC2 instance that has a web server. In the security groups I allowed incoming traffic on 80 and 443 but removed all the outgoing traffic for security reasons. My application uses AWS SNS and SMTP, and of course whenever it tries to…
kemety
  • 155
  • 2
  • 12
1
vote
1 answer

Set Sender ID for AWS SNS SMS for Indian Numbers

I'm using AWS SDK 3.0 to send SMS via AWS SNS for indian numbers. The SMS are working fine. However its not picking up the Sender ID instead shows something like DM-NOTICE or sometimes something else. Any pointers in this direction would be much…
1
vote
1 answer

SNS invoked AWS lambda is throttled, sent to retry and invoked successfully more then once later

I have Lambda subscribed to SNS topic and having concurrency limit set to 5. Once 20 SNS messages are pushed, Lambda will run 5 instances and process first 5 SNS messages, that is totally ok. According to docs, other messages will be considered…
1
vote
1 answer

AWS SNS to Lambda, how many message per invoke?

I have an SNS topic to which a lambda is subscribed. In the subscribed lambda, in the event parameter, I have a Records attribute which turns out to be an array and containing (at least) one message from SNS. That's why I'm wondering if, at some…
hlefebvr
  • 97
  • 1
  • 8
1
vote
1 answer

Is it possible to retrieve which attempt of an SNS message is running on lambda?

I have a topic at AWS SNS which sends messages to an AWS Lambda function. This function may sometimes fail and depending on which attempt is currently running I need to store some information about the failure. After looking for a while I didn't…
1
vote
1 answer

AWS SNSClient publish call could not reach endpoint

I am trying to publish a message to a topic using the AWS SNSClient from the c++ SDK. Can someone help me to find a way to figure out what is wrong with my approach? The error message I am getting only says that the "endpoint could not be…
Edub
  • 508
  • 7
  • 24
1
vote
2 answers

Control AWS Lambda concurrent execution with SNS

In SNS documentation I can see some information about delivery policies and receive rate in particular: http://docs.aws.amazon.com/sns/latest/dg/DeliveryPolicies.html#delivery-policy-maximum-receive-rate But is this configuration applicable only…
isaranchuk
  • 362
  • 3
  • 13
1
vote
1 answer

Lambda function does not publish to SNS or update dynamodb

I am trying to update dynamodb and send SNS notification from Lambda function using the following code. Even though function execute successfully SNS notification does not happen. SNS log does not show any entry either. SNS from console to the same…