back
terraform {
required_providers {
aws = ">= 3.35.0"
}
}
top
module "aws_iot_thing" {
source = "./modules/aws/r/aws_iot_thing"
# attributes - (optional) is a type of map of string
attributes = {}
# name - (required) is a type of string
name = null
# thing_type_name - (optional) is a type of string
thing_type_name = null
}
top
variable "attributes" {
description = "(optional)"
type = map(string)
default = null
}
variable "name" {
description = "(required)"
type = string
}
variable "thing_type_name" {
description = "(optional)"
type = string
default = null
}
top
resource "aws_iot_thing" "this" {
# attributes - (optional) is a type of map of string
attributes = var.attributes
# name - (required) is a type of string
name = var.name
# thing_type_name - (optional) is a type of string
thing_type_name = var.thing_type_name
}
top
output "arn" {
description = "returns a string"
value = aws_iot_thing.this.arn
}
output "default_client_id" {
description = "returns a string"
value = aws_iot_thing.this.default_client_id
}
output "id" {
description = "returns a string"
value = aws_iot_thing.this.id
}
output "version" {
description = "returns a number"
value = aws_iot_thing.this.version
}
output "this" {
value = aws_iot_thing.this
}
top