Skip to content

Latest commit

 

History

History
128 lines (102 loc) · 2.42 KB

alicloud_db_instance_engines.md

File metadata and controls

128 lines (102 loc) · 2.42 KB

alicloud_db_instance_engines

back

Index

Terraform

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

top

Example Usage

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

  # engine - (optional) is a type of string
  engine = null
  # engine_version - (optional) is a type of string
  engine_version = null
  # instance_charge_type - (optional) is a type of string
  instance_charge_type = null
  # multi_zone - (optional) is a type of bool
  multi_zone = null
  # output_file - (optional) is a type of string
  output_file = null
  # zone_id - (optional) is a type of string
  zone_id = null
}

top

Variables

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

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

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

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

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

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

top

Datasource

data "alicloud_db_instance_engines" "this" {
  # engine - (optional) is a type of string
  engine = var.engine
  # engine_version - (optional) is a type of string
  engine_version = var.engine_version
  # instance_charge_type - (optional) is a type of string
  instance_charge_type = var.instance_charge_type
  # multi_zone - (optional) is a type of bool
  multi_zone = var.multi_zone
  # output_file - (optional) is a type of string
  output_file = var.output_file
  # zone_id - (optional) is a type of string
  zone_id = var.zone_id
}

top

Outputs

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

output "instance_engines" {
  description = "returns a list of object"
  value       = data.alicloud_db_instance_engines.this.instance_engines
}

output "this" {
  value = alicloud_db_instance_engines.this
}

top