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

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024

ความคิดเห็น • 33

  • @chefon4923
    @chefon4923 2 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

    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

  • @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

  • @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.

  • @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

  • @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 ปีที่แล้ว +1

      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

  • @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 (th-cam.com/video/4o6GCiUX8Xk/w-d-xo.html) and the one of dynamo write (th-cam.com/video/AguTaMQGACE/w-d-xo.html) to get that functionality. Let me know how that goes

  • @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 ปีที่แล้ว +1

      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;

  • @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

  • @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.

  • @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

  • @khushbookabra1354
    @khushbookabra1354 3 ปีที่แล้ว

    How to make it both way communication it is only one way?????

    • @CompleteCoding
      @CompleteCoding  3 ปีที่แล้ว +1

      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🙂😇

  • @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.

  • @rakeshkumarbadal651
    @rakeshkumarbadal651 4 ปีที่แล้ว

    AWS CDK?

    • @CompleteCoding
      @CompleteCoding  4 ปีที่แล้ว +1

      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