Sending SMS using Amazon SNS from a AWS lambda function?

0 votes

Using Amazon SNS you can send notifications and SMS globally.

My scenario: I want to send SMS from a Lambda function where we provide as input, mobile number, and text message. Then use SNS to deliver that message. But didn't find a helpful documentation or example code for NodeJS or java.

Can any one suggest a solution?

Feb 18 in AWS by datageek
• 3,040 points
409 views

1 answer to this question.

0 votes

First, you need to write a Lambda function which is invoked via HTTP request so you'll also need to setup API Gateway to route connections to your Lambda function.

After that, enable the Lambda function to push that data to "SNS Topic" meanwhile SMS Subscription will "poll" for any new data in this "Topic". This way soon as any data gets into this topic, it will be consumed by subscription and SMS will be sent.

Try implementing this login in your code.

answered Feb 18 by Archana
• 5,560 points

Related Questions In AWS

+1 vote
3 answers

Not able to pass params POST to AWS Lambda from Amazon API Gateway

For this template : application/x-www-form-urlencoded  This line below will ...READ MORE

answered Jun 13, 2018 in AWS by Cloud gunner
• 4,280 points
2,193 views
0 votes
1 answer
0 votes
1 answer
+2 votes
3 answers
0 votes
1 answer

How to invoke the AWS lambda function from Java code

There are 2 methods in this class which should ...READ MORE

answered Feb 19 in AWS by Archana
• 5,560 points
843 views
–1 vote
1 answer

How to read a csv file stored in Amazon S3 using csv.DictReader

The code would be something like this: import ...READ MORE

answered Oct 25, 2018 in AWS by Archana
• 5,560 points
8,768 views