Groups are helpful administrating policies across large numbers of iot things.
New resource based on:
https://docs.aws.amazon.com/cli/latest/reference/iot/create-thing-group.html
This would be very helpful - as long as you also make sure that policies can be attached to thing groups that get inherited down the line. That greatly simplifies control of permissions for large numbers of things. You already have an aws_iot_thing_principal_attachment resource, so either modify that to work with thing groups, or create something similar just for thing groups. (based on https://docs.aws.amazon.com/cli/latest/reference/iot/attach-policy.html) Thanks!
Most helpful comment
This would be very helpful - as long as you also make sure that policies can be attached to thing groups that get inherited down the line. That greatly simplifies control of permissions for large numbers of things. You already have an aws_iot_thing_principal_attachment resource, so either modify that to work with thing groups, or create something similar just for thing groups. (based on https://docs.aws.amazon.com/cli/latest/reference/iot/attach-policy.html) Thanks!