tfwriter

Terraform HCL code generator.

Download as .zip Download as .tar.gz View on GitHub

alicloud_logtail_attachment

back

Index

Terraform

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

top

Example Usage

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

  # logtail_config_name - (required) is a type of string
  logtail_config_name = null
  # machine_group_name - (required) is a type of string
  machine_group_name = null
  # project - (required) is a type of string
  project = null
}

top

Variables

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

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

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

top

Resource

resource "alicloud_logtail_attachment" "this" {
  # logtail_config_name - (required) is a type of string
  logtail_config_name = var.logtail_config_name
  # machine_group_name - (required) is a type of string
  machine_group_name = var.machine_group_name
  # project - (required) is a type of string
  project = var.project
}

top

Outputs

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

output "this" {
  value = alicloud_logtail_attachment.this
}

top