Skip to content

Latest commit

 

History

History
107 lines (82 loc) · 1.7 KB

aws_iot_thing.md

File metadata and controls

107 lines (82 loc) · 1.7 KB

aws_iot_thing

back

Index

Terraform

terraform {
  required_providers {
    aws = ">= 3.35.0"
  }
}

top

Example Usage

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

Variables

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

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

Outputs

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