By using AWS re:Post, you agree to the Terms of Use
/Step Function Not Sending SNS Message/

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 Answers
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/

answered 20 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions