alicloud_kvstore_instance_engines

更新时间:

This data source provides the Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance engines resource available info of Alibaba Cloud.

-> NOTE: Available since v1.51.0

Example Usage

data "alicloud_zones" "resources" {
  available_resource_creation = "KVStore"
}

data "alicloud_kvstore_instance_engines" "resources" {
  zone_id              = "${data.alicloud_zones.resources.zones.0.id}"
  instance_charge_type = "PrePaid"
  engine               = "Redis"
  engine_version       = "5.0"
  output_file          = "./engines.txt"
}

output "first_kvstore_instance_class" {
  value = "${data.alicloud_kvstore_instance_engines.resources.instance_engines.0.engine}"
}

Argument Reference

The following arguments are supported:

  • zone_id - (Required) The Zone to launch the Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance.
  • instance_charge_type - (Optional) Filter the results by charge type. Valid values: PrePaid and PostPaid. Default to PrePaid.
  • engine - (Optional) Database type. Options are Redis, Memcache. Default to Redis.
  • engine_version - (Optional) Database version required by the user. Value options of Redis can refer to the latest docs detail info EngineVersion. Value of Memcache should be empty.
  • output_file - (Optional) File name where to save data source results (after running terraform apply).

Attributes Reference

The following attributes are exported in addition to the arguments listed above:

  • instance_engines - A list of Tair (Redis OSS-Compatible) And Memcache (KVStore) available instance engines. Each element contains the following attributes:
    • zone_id - The Zone to launch the Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance.
    • engine - Database type.
    • engine_version - Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance version.