Resource: aws_iot_thing_group_membership

Adds an IoT Thing to an IoT Thing Group.

Example Usage

resource "aws_iot_thing_group_membership" "example" {
  thing_name       = "example-thing"
  thing_group_name = "example-group"

  override_dynamic_group = true
}

Argument 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 Thing Group Membership using the thing group name and thing name. For example:

import {
  to = aws_iot_thing_group_membership.example
  id = "thing_group_name/thing_name"
}

Using terraform import, import IoT Thing Group Membership using the thing group name and thing name. For example:

% terraform import aws_iot_thing_group_membership.example thing_group_name/thing_name