tfwriter

Terraform HCL code generator.

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

alicloud_disks

back

Index

Terraform

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

top

Example Usage

module "alicloud_disks" {
  source = "./modules/alicloud/d/alicloud_disks"

  # category - (optional) is a type of string
  category = null
  # encrypted - (optional) is a type of string
  encrypted = null
  # ids - (optional) is a type of list of string
  ids = []
  # instance_id - (optional) is a type of string
  instance_id = null
  # name_regex - (optional) is a type of string
  name_regex = null
  # output_file - (optional) is a type of string
  output_file = null
  # resource_group_id - (optional) is a type of string
  resource_group_id = null
  # tags - (optional) is a type of map of string
  tags = {}
  # type - (optional) is a type of string
  type = null
}

top

Variables

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

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

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

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

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

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

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

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

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

top

Datasource

data "alicloud_disks" "this" {
  # category - (optional) is a type of string
  category = var.category
  # encrypted - (optional) is a type of string
  encrypted = var.encrypted
  # ids - (optional) is a type of list of string
  ids = var.ids
  # instance_id - (optional) is a type of string
  instance_id = var.instance_id
  # name_regex - (optional) is a type of string
  name_regex = var.name_regex
  # output_file - (optional) is a type of string
  output_file = var.output_file
  # resource_group_id - (optional) is a type of string
  resource_group_id = var.resource_group_id
  # tags - (optional) is a type of map of string
  tags = var.tags
  # type - (optional) is a type of string
  type = var.type
}

top

Outputs

output "disks" {
  description = "returns a list of object"
  value       = data.alicloud_disks.this.disks
}

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

output "ids" {
  description = "returns a list of string"
  value       = data.alicloud_disks.this.ids
}

output "this" {
  value = alicloud_disks.this
}

top