No video

How to send a text using AWS and Serverless - Complete Tutorial - SMS API

  Рет қаралды 8,610

Complete Coding - Master AWS Serverless

Complete Coding - Master AWS Serverless

Күн бұрын

In this video you'll learn how to create an API that can send a text message to your users. This can be great for updating users on new features, notifying them when something happens in your application, or even for allowing them to send messages to each other.
Code available here:
github.com/SamWSoftware/Serve...

Пікірлер: 33
@1407link
@1407link 2 жыл бұрын
Thanks chamo, you are the best! Could you please teach us how to add authorizers to lambdas? So that only logged users can call them. Thanks in advance!!
@CompleteCoding
@CompleteCoding 2 жыл бұрын
Great idea. I've covered Cognito before but never actually how to add that to an endpoint
@veronicaluceriano2101
@veronicaluceriano2101 3 жыл бұрын
Hello. What extension do you use in vscode for the aws suggestion when coding?
@CompleteCoding
@CompleteCoding 3 жыл бұрын
There is a plugin called "Serverless IDE" and I think that is the one you're talking about. It is good but not perfect
@gtanmoy
@gtanmoy 4 жыл бұрын
Hi, Thanks for this nice video. Can you make a video on to send sms and email from a single lambda function when an item inserted to dynamoDB?
@CompleteCoding
@CompleteCoding 4 жыл бұрын
You should be able to combine the code from this video, the video on emails (kzfaq.info/get/bejne/atVmeqaaur6ciJ8.html) and the one of dynamo write (kzfaq.info/get/bejne/d82lh8R-tq2lc3k.html) to get that functionality. Let me know how that goes
@chefon4923
@chefon4923 2 жыл бұрын
When I use the code I cloned from the repository and run sls deploy, it produces this "cmdlet Select-String at command pipeline position 1 Supply values for the following parameters: Path[0]: " I don't seem to understand what to provide there
@pavithrab2884
@pavithrab2884 Жыл бұрын
Try running it from command prompt or inside VS code in the terminal section to your extreme right you can see down arrow symbol,click on that select command prompt and run the command
@arpantrivedi2380
@arpantrivedi2380 Жыл бұрын
All the time, I am getting an error in the cloudwatch i.e "Sandboxed account unable to send to number.", Now if I verify the number (In the SNS => Mobile => Text Messaging(SMS) => Sandbox destination phone numbers) only then I am getting the SMS, So, my question is there any other way to receive the SMS in any phone number ?
@CompleteCoding
@CompleteCoding Жыл бұрын
You can make a request to move your account out of sandbox mode. This will allow you to send to messages to any mobile number. There are some requirements for getting your account unlocked though
@rakeshkumarbadal651
@rakeshkumarbadal651 3 жыл бұрын
where you are writing this code? It is on aws api gateway?
@CompleteCoding
@CompleteCoding 3 жыл бұрын
The code ( the JavaScript part) for this is all Lambda code. The section where we are in the serverless.yml file is configuration for AWS. This is telling it to create a lambda with the sendSMS handler code, as well as adding an API Gateway endpoint that triggers the event for that lambda. I hope that helps.
@niteshkumar3433
@niteshkumar3433 3 жыл бұрын
How I can send my failed messages to dead letter queue with using sns client from lambda using phone number rather sending from topic and subscribing
@CompleteCoding
@CompleteCoding 3 жыл бұрын
I've not worked with the dead letter queue from SNS so couldn't advise you on that
@elrichlee2372
@elrichlee2372 3 жыл бұрын
i hit the subscribe button, are not you going to let us see the response.js file in the video? or did you assume all the viewers already know how to create responses?
@CompleteCoding
@CompleteCoding 3 жыл бұрын
This video builds off what I've covered in a previous video but here's the code. const Responses = { _DefineResponse(statusCode = 502, data = {}) { return { headers: { 'Content-Type': 'application/json', 'Access-Control-Allow-Methods': '*', 'Access-Control-Allow-Origin': '*', }, statusCode, body: JSON.stringify(data), }; }, _200(data = {}) { return this._DefineResponse(200, data); }, _204(data = {}) { return this._DefineResponse(204, data); }, _400(data = {}) { return this._DefineResponse(400, data); }, _404(data = {}) { return this._DefineResponse(404, data); }, }; export default Responses;
@Arrival_On_Demand
@Arrival_On_Demand 3 жыл бұрын
Hi, can you make tutorial video for sms send to user from wordpress website by using pinpoint sms service & lambda ?? if you make it, please make full tutorial and step by step.
@CompleteCoding
@CompleteCoding 3 жыл бұрын
I'm assuming that you could create a wordpress plugin which calls the API from this video. I've never worked with wordpress before so I'm not certain how it would work.
@truthseeker2171
@truthseeker2171 2 жыл бұрын
Thanks for the video. But has anyone ever wondered why SMS is so darn expensive? You can literally send huge contents over the internet for cheap, but plain unsecured text seems to be this expensive per sms. Why is that?
@CompleteCoding
@CompleteCoding 2 жыл бұрын
Good point. A quick Google says that it's because phone companies are greedy. It uses almost none of their network bandwidth but people pay it so they keep charging for it
@ajaypherwani9068
@ajaypherwani9068 2 жыл бұрын
To send reminders for registered events
@CompleteCoding
@CompleteCoding 2 жыл бұрын
Thats a nice use case. There are services out there that you could completely replace with this
@orrlevinger
@orrlevinger 3 жыл бұрын
it didnt work for me.. didnt get any SMS.. do i need to cofigure anything else in the AWS colsole to enable SMS ?
@CompleteCoding
@CompleteCoding 3 жыл бұрын
You may have to check which countries are automatically allowed by AWS. I think that some you will have to make a request to send messages to. Have a search of the AWS docs.
@TheTanmayjain
@TheTanmayjain 3 жыл бұрын
Have you configure cloudwatch logs for SNS text messaging service ? you can find reason in the logs
@johnnguyen1655
@johnnguyen1655 3 жыл бұрын
Same here, the api got execute but no sms was sent. did you find out the solution yet?
@AbrahamSalloum
@AbrahamSalloum 3 жыл бұрын
check that your regions match.
@khushbookabra1354
@khushbookabra1354 3 жыл бұрын
How to make it both way communication it is only one way?????
@CompleteCoding
@CompleteCoding 3 жыл бұрын
unfortunately SNS only works with sending messages at the moment. You could use a platform like twilio (which has a great API) for sending and receiving messages. SNS is more about sending updates to users
@khushbookabra1354
@khushbookabra1354 3 жыл бұрын
Thank you for reply🙂😇
@rakeshkumarbadal651
@rakeshkumarbadal651 3 жыл бұрын
AWS CDK?
@CompleteCoding
@CompleteCoding 3 жыл бұрын
I'm looking into the best way to teach the AWS CDK and will be making a video shortly. Make sure you're subscribed so you don't miss out on that.
@thegaelamin975
@thegaelamin975 Жыл бұрын
Hi , just have question how can i send notification to specific user using id or another attribute , is there any way to set another target rather than phone number
Securing Your Serverless API With API Keys
14:21
Complete Coding - Master AWS Serverless
Рет қаралды 10 М.
How to send an email with Amazon SES and Serverless - tutorial
20:02
Complete Coding - Master AWS Serverless
Рет қаралды 26 М.
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 39 МЛН
UNO!
00:18
БРУНО
Рет қаралды 3,5 МЛН
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 197 МЛН
Business SMS 101: How to send SMS at scale
25:46
AWS Developers
Рет қаралды 1,5 М.
Working with WebSockets on AWS
30:48
Ryan H. Lewis
Рет қаралды 36 М.
Create an API to get data from your DynamoDB Database
20:17
Complete Coding - Master AWS Serverless
Рет қаралды 22 М.
How to Send an SMS Message with Amazon Pinpoint Campaign [Demo]
6:22
SMS API in 5 minutes with AWS SNS and NodeJS
5:09
SBCODE
Рет қаралды 59 М.
How to Create a WebSocket API using Amazon API Gateway and AWS Lambda - full tutorial
44:14
Complete Coding - Master AWS Serverless
Рет қаралды 36 М.
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 39 МЛН