redis_instances

最近更新时间:2019-12-13 15:40:18

This data source provides a list of redis resources according to their name, Instance ID, Subnet ID, VPC ID and the Project ID they belong to .

Example Usage

# Get  redis instances
data "ksyun_redis_instances" "default" {
  output_file       = "output_result1"
  fuzzy_search      = ""
  iam_project_id    = ""
  cache_id          = ""
  vnet_id           = ""
  vpc_id            = ""
  name              = ""
  vip               = ""
}

Argument Reference

The following arguments are supported:

  • name - (Optional) The name of redis instance, all the Redis instances belong to this region will be retrieved if the name is "".
  • iam_project_id - (Optional) The project instance belongs to.
  • cache_id - (Optional) The ID of the intance .
  • vpc_id - (Optional) Used to retrieve instances belong to specified VPC .
  • vnet_id - (Optional) The ID of subnet. the instance will use the subnet in the current region.
  • vip - (Optional) Private IP address of the instance.
  • output_file - (Optional) File name where to save data source results (after running terraform plan).

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • instances - It is a nested type which documented below.
  • total_count - Total number of Redis instances that satisfy the condition.

金山云,开启您的云计算之旅

免费注册