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, 2019 in AWS by datageek
• 3,090 points
1,843 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, 2019 by Archana
• 5,640 points

Related Questions In AWS

0 votes
1 answer

Email notification using SNS topic and Lambda function in AWS?

Hi@akhtar, You can set notification system for your ...READ MORE

answered Apr 2, 2020 in AWS by MD
• 95,440 points
4,403 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, 2019 in AWS by Archana
• 5,640 points
5,656 views
+1 vote
2 answers

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,640 points
53,678 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP