amazon-sns

Triggering a lambda from SNS using cloud-formation?

可紊 提交于 2021-02-19 06:16:05
问题 Triggering a lambda from SNS using cloud-formation? 回答1: What we do is that we don't point sns to an unqualified lambda, rather we point it to a lambda-alias. Basically, create a lambda, and then create an alias, use sns to point to the lambda-alias. When you have new code for lambda (your ci/cd can do the following), update lambda function code, create a new lambda version, and repoint your alias to the new version. This way you sns doesn't have to change at all with new lambda code drops.

AWS SNS Invalid parameter phone number

旧时模样 提交于 2021-02-19 01:53:11
问题 i am trying to learn aws sns service to send sms from my web application. I am working on localhost. $params = array( 'credentials' => array( 'key' => 'iam_key', 'secret' => 'iam_secret', ), 'region' => 'ap-south-1', // < your aws from SNS Topic region 'version' => 'latest', 'http' => ['verify'=>false] ); $sns = \Aws\Sns\SnsClient::factory($params); $msgattributes = [ 'AWS.SNS.SMS.SenderID' => [ 'DataType' => 'String', 'StringValue' => 'Klassroom', ], 'AWS.SNS.SMS.SMSType' => [ 'DataType' =>

AWS SNS stopped delivering messages

∥☆過路亽.° 提交于 2021-02-08 11:34:31
问题 I tried sending SMS from AWS SNS API through JAVA which worked for two days then suddenly stopped delivering messages but the response from API is 200 ok with a proper message ID without delivering messages. I am trying to post the request through postman to get more clarity of the issue but cannot find any collection or request signature. ` public class SNS { public static void sendSMS(String phoneNumber,String message) { BasicAWSCredentials basicCred = new BasicAWSCredentials("XXXXXXXXXXX",

Simulating message persistence in SNS using SQS

こ雲淡風輕ζ 提交于 2021-02-08 11:28:26
问题 We are evaluating SNS for our messaging requirements to integrate multiple applications. we have a single producer that publishes messages to multiple topics on SNS. Each topic has 2-5 subscribers. In event of subscriber failures (down for maintenance) I have a few questions on the recommended strategy of using SQS queues per consumer Is it possible to configure SNS to push to SQS only in event of failure in delivering the message to a subscriber? Dumping all the messages in SQS queue creates

Simulating message persistence in SNS using SQS

北城余情 提交于 2021-02-08 11:28:26
问题 We are evaluating SNS for our messaging requirements to integrate multiple applications. we have a single producer that publishes messages to multiple topics on SNS. Each topic has 2-5 subscribers. In event of subscriber failures (down for maintenance) I have a few questions on the recommended strategy of using SQS queues per consumer Is it possible to configure SNS to push to SQS only in event of failure in delivering the message to a subscriber? Dumping all the messages in SQS queue creates

Terraform: CloudWatch Event that notifies SNS

别等时光非礼了梦想. 提交于 2021-02-08 07:21:59
问题 I'm learning TF and trying to apply an infrastructure that creates: a simple lambda function an SNS topic get that lambda to subscribe the SNS topic a Cloud Watch Event that publishes a message to the topic at some interval a Cloud Watch Log Group to check if the lambda gets notified by the SNS The lambda permission to allow calls from SNS I'm able to apply that successfully. The infrastructure seems perfectly fine (it has the same aspect when I create that myself through the visual aws

Terraform: CloudWatch Event that notifies SNS

独自空忆成欢 提交于 2021-02-08 07:21:12
问题 I'm learning TF and trying to apply an infrastructure that creates: a simple lambda function an SNS topic get that lambda to subscribe the SNS topic a Cloud Watch Event that publishes a message to the topic at some interval a Cloud Watch Log Group to check if the lambda gets notified by the SNS The lambda permission to allow calls from SNS I'm able to apply that successfully. The infrastructure seems perfectly fine (it has the same aspect when I create that myself through the visual aws

sending sms from java web app using aws sns

只谈情不闲聊 提交于 2021-02-06 13:00:42
问题 A user will create an account on my web app. The app will need to authenticate the user by sending a text message to the mobile phone number that the user provides. The text message is a short unique code, which the user will need to type in to the web browser in order for the app to authenticate the user. How can I configure Amazon AWS SNS for this use case? From what I have read, SNS works by the webmaster selecting a topic and then each user subscribes to that topic. Then the webmaster

sending sms from java web app using aws sns

别来无恙 提交于 2021-02-06 12:59:09
问题 A user will create an account on my web app. The app will need to authenticate the user by sending a text message to the mobile phone number that the user provides. The text message is a short unique code, which the user will need to type in to the web browser in order for the app to authenticate the user. How can I configure Amazon AWS SNS for this use case? From what I have read, SNS works by the webmaster selecting a topic and then each user subscribes to that topic. Then the webmaster

How to send SNS topic a message from Node.js Lambda function

对着背影说爱祢 提交于 2021-01-29 08:23:47
问题 An SNS topic has been created to call a subscribed Lambda function which adds a user to a group in Cognito. Sending a message to the topic using the console in the web browser works correctly. The Lambda function is called and the user is added to the group. The Lambda function below attempts to replace the web console by sending a message to the SNS topic itself, which should end with the user being added to the group. When running the function in the Lambda web console, the function returns