Skip to content

Latest commit

 

History

History
110 lines (86 loc) · 1.88 KB

alicloud_log_machine_group.md

File metadata and controls

110 lines (86 loc) · 1.88 KB

alicloud_log_machine_group

back

Index

Terraform

terraform {
  required_providers {
    alicloud = ">= 1.120.0"
  }
}

top

Example Usage

module "alicloud_log_machine_group" {
  source = "./modules/alicloud/r/alicloud_log_machine_group"

  # identify_list - (required) is a type of set of string
  identify_list = []
  # identify_type - (optional) is a type of string
  identify_type = null
  # name - (required) is a type of string
  name = null
  # project - (required) is a type of string
  project = null
  # topic - (optional) is a type of string
  topic = null
}

top

Variables

variable "identify_list" {
  description = "(required)"
  type        = set(string)
}

variable "identify_type" {
  description = "(optional)"
  type        = string
  default     = null
}

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

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

variable "topic" {
  description = "(optional)"
  type        = string
  default     = null
}

top

Resource

resource "alicloud_log_machine_group" "this" {
  # identify_list - (required) is a type of set of string
  identify_list = var.identify_list
  # identify_type - (optional) is a type of string
  identify_type = var.identify_type
  # name - (required) is a type of string
  name = var.name
  # project - (required) is a type of string
  project = var.project
  # topic - (optional) is a type of string
  topic = var.topic
}

top

Outputs

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

output "this" {
  value = alicloud_log_machine_group.this
}

top