Creates and manages an AWS IoT Thing.
resource "aws_iot_thing" "example" {
name = "example"
attributes = {
First = "examplevalue"
}
}
name
- (Required) The name of the thing.attributes
- (Optional) Map of attributes of the thing.thing_type_name
- (Optional) The thing type name.This resource exports the following attributes in addition to the arguments above:
default_client_id
- The default client ID.version
- The current version of the thing record in the registry.arn
- The ARN of the thing.In Terraform v1.5.0 and later, use an import
block to import IOT Things using the name. For example:
import {
to = aws_iot_thing.example
id = "example"
}
Using terraform import
, import IOT Things using the name. For example:
% terraform import aws_iot_thing.example example