alicloud_gpdb_accounts

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

Example Usage

Basic Usage

data "alicloud_gpdb_accounts" "ids" {
  db_instance_id = "example_value"
  ids            = ["my-Account-1", "my-Account-2"]
}
output "gpdb_account_id_1" {
  value = data.alicloud_gpdb_accounts.ids.accounts.0.id
}

data "alicloud_gpdb_accounts" "nameRegex" {
  db_instance_id = "example_value"
  name_regex     = "^my-Account"
}
output "gpdb_account_id_2" {
  value = data.alicloud_gpdb_accounts.nameRegex.accounts.0.id
}

Argument Reference

The following arguments are supported:

Argument Reference

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