asset tracker v2: MQTT input error: -128 , have thing group with policy.

Hello,

I am trying to run the asset tracker v2.

I have completed the setup steps and configuration.

Can you please let me know what to do ?

I have read that the -128 error is associated with

I have also attached the policy to the certificate

C:\Users\cjh39\AppData\Local\Programs\Python\Python310\Scripts>aws iot attach-policy --target "arn:aws:iot:us-west-1:274488353815:cert/582c3f9cafa73cac9de3217fe074a19835e76799a6486338b6d9739b962d659b" --policy-name my-policy

The following is the AWS Console and what I have configured:

This is the actual JSON Policy:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "iot:Connect",
      "Resource": "arn:aws:iot:us-east-2:274488353815:client/thinggps"
    },
    {
      "Effect": "Allow",
      "Action": "iot:Publish",
      "Resource": [
        "arn:aws:iot:us-east-2:274488353815:topic/$aws/thing/thinggps/shadow/update",
        "arn:aws:iot:us-east-2:274488353815:topic/$aws/thing/thinggps/shadow/delete",
        "arn:aws:iot:us-east-2:274488353815:topic/$aws/thing/thinggps/shadow/get"
      ]
    },
    {
      "Effect": "Allow",
      "Action": "iot:Receive",
      "Resource": [
        "arn:aws:iot:us-east-2:274488353815:topic/$aws/thing/thinggps/shadow/update/accepted",
        "arn:aws:iot:us-east-2:274488353815:topic/$aws/thing/thinggps/shadow/delete/accepted",
        "arn:aws:iot:us-east-2:274488353815:topic/$aws/thing/thinggps/shadow/get/accepted",
        "arn:aws:iot:us-east-2:274488353815:topic/$aws/thing/thinggps/shadow/update/rejected",
        "arn:aws:iot:us-east-2:274488353815:topic/$aws/thing/thinggps/shadow/delete/rejected"
      ]
    },
    {
      "Effect": "Allow",
      "Action": "iot:Subscribe",
      "Resource": [
        "arn:aws:iot:us-east-2:274488353815:topicfilter/$aws/thing/thinggps/shadow/update/accepted",
        "arn:aws:iot:us-east-2:274488353815:topicfilter/$aws/thing/thinggps/shadow/delete/accepted",
        "arn:aws:iot:us-east-2:274488353815:topicfilter/$aws/thing/thinggps/shadow/get/accepted",
        "arn:aws:iot:us-east-2:274488353815:topicfilter/$aws/thing/thinggps/shadow/update/rejected",
        "arn:aws:iot:us-west-1:274488353815:topicfilter/$aws/thing/thinggps/shadow/delete/rejected"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "iot:GetThingShadow",
        "iot:UpdateThingShadow",
        "iot:DeleteThingShadow"
      ],
      "Resource": "arn:aws:iot:us-east-2:274488353815:thing/thinggps"
    }
  ]
}

This is the serial output

Related