» Resource: aws_iot_thing_principal_attachment

Attaches Principal to AWS IoT Thing.

» Example Usage

resource "aws_iot_thing" "example" {
  name = "example"
}

resource "aws_iot_certificate" "cert" {
  csr    = "${file("csr.pem")}"
  active = true
}

resource "aws_iot_thing_attachment" "att" {
  principal = "${aws_iot_certificate.cert.arn}"
  thing     = "${aws_iot_thing.example.name}"
}

» Argument Reference

  • principal - (Required) The AWS IoT Certificate ARN or Amazon Cognito Identity ID.
  • thing - (Required) The name of the thing.