» alicloud_kvstore_instances_engines

This data source provides the KVStore instance engines resource available info of Alibaba Cloud.

» 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 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 KVStore available instance engines. Each element contains the following attributes: