Closed trahman-khan closed 4 years ago
Resolved the issue. I had to update the policy for iot:* and after that, I was able to see the subscription messages. But, this is strange because I had iot:Subscribe present on the policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "iot:*",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "iot:Connect",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "iot:Subscribe",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "iot:Publish",
"Resource": "*"
}
]
}
Closing the issue but if anyone can please shed light on this policy puzzle :)
Hi All, I have compiled the SDK on my Ubuntu VM and tried to run the pub-sub-sample program. I was expecting to see both the published and subscribed messages on the hardcoded topic but looks like it can publish the messages but nothing happens on the subscription. Below is the output:
Any help would be great! Please let me know if any additional information is required.