hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.81k stars 9.16k forks source link

[Enhancement]: Create IoT Dynamic thing groups #28575

Open oabcdca opened 1 year ago

oabcdca commented 1 year ago

Description

AWS allows us to create dynamic thing groups. In AWS CLI, you can create a dynamic thing group specifying --query-string:

$ aws iot create-dynamic-thing-group --thing-group-name "RoomTooWarm" --query-string "attributes.temperature>60"

Affected Resource(s) and/or Data Source(s)

Potential Terraform Configuration

resource "aws_iot_thing_group" "example" {
  name = "example"
  query = "attributes.temperature>60"
}

References

Would you like to implement a fix?

None

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

bennylu2 commented 1 year ago

Is this the same resource? https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iot_thing_group

dblackhall-tyro commented 1 year ago

Is this the same resource? https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iot_thing_group

Yes

douglascayers commented 1 year ago

Is this the same resource? https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iot_thing_group

I don't think so. Dynamic Thing Groups are a separate API resource.

Dynamic Thing Group: https://docs.aws.amazon.com/iot/latest/apireference/API_CreateDynamicThingGroup.html

Thing Group: https://docs.aws.amazon.com/iot/latest/apireference/API_CreateThingGroup.html