alicloud_click_house_accounts

This data source provides the Click House Accounts of the current Alibaba Cloud user.

Example Usage

Basic Usage

variable "name" {
  default = "testaccountname"
}
variable "pwd" {
  default = "Tf-testpwd"
}
resource "alicloud_click_house_db_cluster" "default" {
  db_cluster_version      = "20.3.10.75"
  category                = "Basic"
  db_cluster_class        = "S8"
  db_cluster_network_type = "vpc"
  db_cluster_description  = var.name
  db_node_group_count     = "1"
  payment_type            = "PayAsYouGo"
  db_node_storage         = "500"
  storage_type            = "cloud_essd"
  vswitch_id              = "your_vswitch_id"
}

resource "alicloud_click_house_account" "default" {
  db_cluster_id       = alicloud_click_house_db_cluster.default.id
  account_description = "your_description"
  account_name        = var.name
  account_password    = var.pwd
}

data "alicloud_click_house_accounts" "default" {
  ids           = [alicloud_click_house_account.default.id]
  db_cluster_id = alicloud_click_house_db_cluster.default.id
}
output "account_id" {
  value = data.alicloud_click_house_accounts.default.ids.0
}

Argument Reference

The following arguments are supported:

Argument Reference

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