tfwriter

Terraform HCL code generator.

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

alicloud_polardb_account

back

Index

Terraform

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

top

Example Usage

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

  # account_description - (optional) is a type of string
  account_description = null
  # account_name - (required) is a type of string
  account_name = null
  # account_password - (required) is a type of string
  account_password = null
  # account_type - (optional) is a type of string
  account_type = null
  # db_cluster_id - (required) is a type of string
  db_cluster_id = null
  # kms_encrypted_password - (optional) is a type of string
  kms_encrypted_password = null
  # kms_encryption_context - (optional) is a type of map of string
  kms_encryption_context = {}
}

top

Variables

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

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

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

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

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

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

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

top

Resource

resource "alicloud_polardb_account" "this" {
  # account_description - (optional) is a type of string
  account_description = var.account_description
  # account_name - (required) is a type of string
  account_name = var.account_name
  # account_password - (required) is a type of string
  account_password = var.account_password
  # account_type - (optional) is a type of string
  account_type = var.account_type
  # db_cluster_id - (required) is a type of string
  db_cluster_id = var.db_cluster_id
  # kms_encrypted_password - (optional) is a type of string
  kms_encrypted_password = var.kms_encrypted_password
  # kms_encryption_context - (optional) is a type of map of string
  kms_encryption_context = var.kms_encryption_context
}

top

Outputs

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

output "this" {
  value = alicloud_polardb_account.this
}

top