Skip to content

Validation error when trying to enable TwoWay Message with Amazon Connect in Pinpoint

0

After Enabling Long Code and adding Phone number to Phone pool, I an trying to enable Two way Messages. After Selecting Amazon connect and giving the IAM role (configured as given in Document), I am getting Validation Error Occurred - Reason="RESOURCE_NOT_ACCESSIBLE" Fields="twoWayChannelRole" . Please find snapshot of Trust role policy, and Permission policy attached. Trust policy: { "Version": "2012-10-17", "Statement": [ { "Sid": "SMSVoice", "Effect": "Allow", "Principal": { "Service": "sms-voice.amazonaws.com" }, "Action": "sts:AssumeRole", "Condition": { "StringEquals": { "aws:SourceAccount": "accountId" } } } ] }

Permission Policy: Enter image description here

steps I tried to resolve: added SNS topic policy: Enter image description here

asked 2 years ago729 views

1 Answer
1

Hi there!

A couple of things: For two way SMS, you choose either Amazon Connect or Amazon SNS. There shouldn't need to be an SNS_Topic policy as in your second screenshot, as it seems you are looking to use Amazon Connect.

Your TwoWayMessagePolicy looks correct. It seems like the error you are getting is related to the Trust Policy on the IAM role itself. Are you able to share the full trust policy you have on the role you created? An example of a working trust policy is below, where <ACCOUNT_ID> is your AWS Account ID. Reference the admin guide for more information.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "SMSVoice",
            "Effect": "Allow",
            "Principal": {
                "Service": "sms-voice.amazonaws.com"
            },
            "Action": "sts:AssumeRole",
            "Condition": {
                "StringEquals": {
                    "aws:SourceAccount": "<ACCOUNT_ID>"
                }
            }
        }
    ]
}
AWS
EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

  • I have already followed all the steps which you have suggested from the admin guide. But the error doesnot resolved. Please let me know any other possible way to fix it.

  • I have already followed all the steps which you have suggested from the admin guide. But the error doesnot resolved. Please let me know any other possible way to fix it.

  • Finally I am able to enable two way SMS- but Now I am unable to Import phone number in Amazon Connect. 0 I am trying to follow this instruction to import my AWS Pinpoint SMS number to Amazon Connect: https://docs.aws.amazon.com/connect/latest/adminguide/setup-sms-messaging.html However, I am stuck at Step 2.10:

    In the Import Phone Number to Amazon Connect window: For the Incoming messages destination drop down choose the Amazon Connect instance that will receive incoming messages, this step does not work because in my Pinpoint console, I cannot see the "Phone Number to Amazon Connect window".

    Please let me know how to proceed further.

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.