tfwriter

Terraform HCL code generator.

Download as .zip Download as .tar.gz View on GitHub

alicloud_polardb_accounts

back

Index

Terraform

terraform {
  required_providers {
    alicloud = ">= 1.120.0"
  }
}

top

Example Usage

module "alicloud_polardb_accounts" {
  source = "./modules/alicloud/d/alicloud_polardb_accounts"

  # db_cluster_id - (required) is a type of string
  db_cluster_id = null
  # name_regex - (optional) is a type of string
  name_regex = null
}

top

Variables

variable "db_cluster_id" {
  description = "(required)"
  type        = string
}

variable "name_regex" {
  description = "(optional)"
  type        = string
  default     = null
}

top

Datasource

data "alicloud_polardb_accounts" "this" {
  # db_cluster_id - (required) is a type of string
  db_cluster_id = var.db_cluster_id
  # name_regex - (optional) is a type of string
  name_regex = var.name_regex
}

top

Outputs

output "accounts" {
  description = "returns a list of object"
  value       = data.alicloud_polardb_accounts.this.accounts
}

output "id" {
  description = "returns a string"
  value       = data.alicloud_polardb_accounts.this.id
}

output "names" {
  description = "returns a list of string"
  value       = data.alicloud_polardb_accounts.this.names
}

output "this" {
  value = alicloud_polardb_accounts.this
}

top