Тёмный

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

Complete Coding - Master AWS Serverless
Подписаться 17 тыс.
Просмотров 9 тыс.
50% 1

Наука

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 33   
@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
@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
@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
@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;
@arpantrivedi2380
@arpantrivedi2380 2 года назад
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 2 года назад
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
@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
@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.
@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 (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-4o6GCiUX8Xk.html) and the one of dynamo write (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-AguTaMQGACE.html) to get that functionality. Let me know how that goes
@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
@rakeshkumarbadal651
@rakeshkumarbadal651 4 года назад
where you are writing this code? It is on aws api gateway?
@CompleteCoding
@CompleteCoding 4 года назад
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.
@orrlevinger
@orrlevinger 4 года назад
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 4 года назад
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🙂😇
@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
@rakeshkumarbadal651
@rakeshkumarbadal651 4 года назад
AWS CDK?
@CompleteCoding
@CompleteCoding 4 года назад
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
Далее
Working with WebSockets on AWS
30:48
Просмотров 37 тыс.
Business SMS 101: How to send SMS at scale
25:46
Просмотров 1,6 тыс.
Securing Your Serverless API With API Keys
14:21
Просмотров 10 тыс.
Create an API to get data from your DynamoDB Database
20:17
SMS API in 5 minutes with AWS SNS and NodeJS
5:09
Просмотров 60 тыс.
Send SMS messages with NextJS and AWS Amplify
21:02
Просмотров 3,3 тыс.
iPhone Standby mode dock, designed with @overwerk
0:27