By using AWS re:Post, you agree to the Terms of Use

Subscribe-Success message is not getting received into SQS from SNS topic while integrating AWS Marketplace SaaS product with Contract pricing

0

I am trying to integrate our SaaS product with AWS Marketplace. Our product has been published to limited. We have also created a SQS and subscribed the Subscription Notification topic to the SQS. However, after making a test purchase, I am not receiving any subscribe-success message to queue.

1 Answer
0

Hello,

There could be a few reasons due to which the “Subscribe-Success message” is not being received to SQS from an SNS Topic: SQS Access Policy permission issues: Please ensure you have set Principal to be the Amazon SNS service. For more details on the same, please refer to the below attached document: [+] https://docs.aws.amazon.com/sns/latest/dg/subscribe-sqs-queue-to-sns-topic.html#SendMessageToSQS.sqs.permissions

User permissions to appropriate topic and queue actions : Here there are two ways to control access to a topic or queue:

  1. Add policy to IAM user or group: Please refer to the sample below:
{
"Statement": [
    {"Effect": "Allow",
      "Action": "sns:Publish",
      "Resource": "arn:aws:sns:us-east-2:1234567890**:MyTopic"
    }
  ]
}

{
"Statement": [
    {"Effect": "Allow",
      "Action": [
        "sqs:ReceiveMessage",
        "sqs:DeleteMessage"
      ],
      "Resource": [
        "arn:aws:sqs:us-east-2:1234567890**:MyQueue1",
        "arn:aws:sqs:us-east-2:1234567890**:MyQueue2"
      ]
    }
  ]
}

  1. Adding a policy to a topic or queue: Please refer to the sample below:
{
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": {
        "AWS": "1111222233**"
      },
      "Action": "sns:Publish",
      "Resource": "arn:aws:sns:us-east-2:<Account-number>**:MyTopic"
    }
  ]
}

{
"Statement": [
    {"Effect": "Allow",
      "Principal": {"AWS": "1111222233**"
      },
      "Action": [
        "sqs:DeleteMessage",
        "sqs:ReceiveMessage"
      ],
      "Resource": [
        "arn:aws:sqs:us-east-2:<Account-number>**:MyQueue"
      ]
    }
  ]
}

You can refer to this document[+] for more details on the same [+] https://docs.aws.amazon.com/sns/latest/dg/subscribe-sqs-queue-to-sns-topic.html#SendMessageToSQS.iam.permissions

SUPPORT ENGINEER
answered a month 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