Resource: aws_iot_thing_group

Manages an AWS IoT Thing Group.

Example Usage

resource "aws_iot_thing_group" "parent" {
  name = "parent"
}

resource "aws_iot_thing_group" "example" {
  name = "example"

  parent_group_name = aws_iot_thing_group.parent.name

  properties {
    attribute_payload {
      attributes = {
        One = "11111"
        Two = "TwoTwo"
      }
    }
    description = "This is my thing group"
  }

  tags = {
    terraform = "true"
  }
}

Argument Reference

properties Reference

attribute_payload Reference

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import IoT Things Groups using the name. For example:

import {
  to = aws_iot_thing_group.example
  id = "example"
}

Using terraform import, import IoT Things Groups using the name. For example:

% terraform import aws_iot_thing_group.example example