Skip to content

Latest commit

 

History

History
87 lines (65 loc) · 1.41 KB

alicloud_polardb_endpoints.md

File metadata and controls

87 lines (65 loc) · 1.41 KB

alicloud_polardb_endpoints

back

Index

Terraform

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

top

Example Usage

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

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

top

Variables

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

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

top

Datasource

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

top

Outputs

output "endpoints" {
  description = "returns a list of object"
  value       = data.alicloud_polardb_endpoints.this.endpoints
}

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

output "this" {
  value = alicloud_polardb_endpoints.this
}

top