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?

1개 답변
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
전문가
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠