I would like to set up an IAM policy so that the user can access shadow (iot:UpdateThingShadow
, iot:GetThingShadow
) only for specific things in AWS IoT.
Things are grouped using a static thing group. And also there is a thing type specified for that things.
As I see here, IoT things cannot be directly tagged. And I cannot find a way to use Resources and Conditions to grant user access only to the specific thing group/type. There are too many devices to list each thing id in the policy.
I'm pretty sure it's a common situation but cannot find any solution. Thanks in advance for your help!
After contact with AWS Support and some research, I see that it's not possible to restrict access to specific group/type for shadow update. The tag based conditions as aws:ResourceTag
are available only for things group managment (e.g. iot:UpdateThingGroup
). IAM policy supports ThingGroupArn
condition key, but it works only with IoT tunnels.
I see here the following options:
Related information: