Skip to content

Latest commit

 

History

History
101 lines (78 loc) · 1.76 KB

alicloud_polardb_database.md

File metadata and controls

101 lines (78 loc) · 1.76 KB

alicloud_polardb_database

back

Index

Terraform

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

top

Example Usage

module "alicloud_polardb_database" {
  source = "./modules/alicloud/r/alicloud_polardb_database"

  # character_set_name - (optional) is a type of string
  character_set_name = null
  # db_cluster_id - (required) is a type of string
  db_cluster_id = null
  # db_description - (optional) is a type of string
  db_description = null
  # db_name - (required) is a type of string
  db_name = null
}

top

Variables

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

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

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

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

top

Resource

resource "alicloud_polardb_database" "this" {
  # character_set_name - (optional) is a type of string
  character_set_name = var.character_set_name
  # db_cluster_id - (required) is a type of string
  db_cluster_id = var.db_cluster_id
  # db_description - (optional) is a type of string
  db_description = var.db_description
  # db_name - (required) is a type of string
  db_name = var.db_name
}

top

Outputs

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

output "this" {
  value = alicloud_polardb_database.this
}

top