-
| Issue:Whenever I try to subscribe to specific topic, which is allowed in the policy, I receive authorization failure (logged in CloudWatch). In my application I receive that AWS IoT connection was established, but then it ends the connection and keep reconnecting, while CloudWatch logs authorization failure. Details:Code in my Spring Boot application: Policy:  | 
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
| It sounds like a policy issue and I would recommend using a fully permissive policy for testing: {
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "*"
      ],
      "Resource": [
        "*"
      ]
    }
  ]
}And once you get it working look at these docs and limit your policy to only what you need. | 
Beta Was this translation helpful? Give feedback.
-
| I found the problem: The correct subscription policy should be as follows: I wrote topicFilter instead of topicfilter. | 
Beta Was this translation helpful? Give feedback.
-
| Hello! Reopening this discussion to make it searchable. | 
Beta Was this translation helpful? Give feedback.
I found the problem:
The correct subscription policy should be as follows:
Allow | iot:Subscribe | arn:aws:iot:us-east-2:1231231231231:topicfilter/sensors/5I wrote topicFilter instead of topicfilter.