Skip to content

Latest commit

 

History

History
81 lines (60 loc) · 1.15 KB

aws_iot_policy_attachment.md

File metadata and controls

81 lines (60 loc) · 1.15 KB

aws_iot_policy_attachment

back

Index

Terraform

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

top

Example Usage

module "aws_iot_policy_attachment" {
  source = "./modules/aws/r/aws_iot_policy_attachment"

  # policy - (required) is a type of string
  policy = null
  # target - (required) is a type of string
  target = null
}

top

Variables

variable "policy" {
  description = "(required)"
  type        = string
}

variable "target" {
  description = "(required)"
  type        = string
}

top

Resource

resource "aws_iot_policy_attachment" "this" {
  # policy - (required) is a type of string
  policy = var.policy
  # target - (required) is a type of string
  target = var.target
}

top

Outputs

output "id" {
  description = "returns a string"
  value       = aws_iot_policy_attachment.this.id
}

output "this" {
  value = aws_iot_policy_attachment.this
}

top