In AWS IoT core, I set up a rule with a republish action to update a thing's shadow (TestThing's shadow) like this
(I created new IAM role for the action in case you are wondering)
What I was expecting was that the thing's shadow should be updated and nothing should be published to 'testthing/error' when I publish a message to 'testthing/message'. But when I published the following message to 'testthing/message' with AWS IoT MQTT client
{
"state":
{
"reported":
{
"Info":"Hello AWS IoT!"
}
}
}
I got this error from 'testthing/error':
...
"failedAction": "RepublishAction",
"failedResource": "/things/TestThing/shadow/update",
"errorMessage": "Failed to republish to topic. Received Server error. The error code is 403. Message arrived on: testthing/message, Topic: /things/TestThing/shadow/update"
...
If I change the topic to which the message should be republished into 'testthing/destination', everything works fine, no error message was published to 'testthing/error'. Am I missing something?