Step Function Not Sending SNS Message

0

I am doing this tutorial Using Code Snippets to Create a State to Send an Amazon SNS message and successfully created a step function. When I go to run the step function it shows it succeeded, but I did not get the message on my cell phone. I have followed these instructions exactly as shown here.

Here is my code:

{
  "Comment": "A Hello World example of the Amazon States Language using Pass states",
  "StartAt": "Hello",
  "States": {
    "Hello": {
      "Type": "Pass",
      "Result": "Hello",
      "Next": "World"
    },
    "World": {
      "Type": "Pass",
      "Result": "World",
      "Next": "Send message to SNS"
    },
    "Send message to SNS": {
      "Type": "Task",
      "Resource": "arn:aws:states:::sns:publish",
      "Parameters": {
        "Message": {
          "Input": "Hello this is a text message from Christian's AWS Step function CodeSnippetsCreateStateSendAWSSNSMessageCoool."
    },
        "PhoneNumber": "+11234567890"
      },
      "End": true
    }
  }
}

Any ideas?

gefragt vor 2 Jahren752 Aufrufe
1 Antwort
0

Please check the following AWS support page for debugging tips - https://aws.amazon.com/premiumsupport/knowledge-center/sns-troubleshoot-sms-message-failures/

Also if you are looking for a good workshop to learn Step Functions, please take a look at - https://catalog.workshops.aws/stepfunctions/en-US/

profile pictureAWS
EXPERTE
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen