描述
TDSQL-C MySQL 数据库账户,产品介绍
示例
variable "availability_zone" {default = "ap-guangzhou-6"}resource "tencentcloud_cynosdb_account" "account" {availability_zone = var.availability_zonecluster_id = tencentcloud_cynosdb_cluster.example.idaccount_name = "cloudapp_test"account_password = "Password@1234"host = "%"description = "cloudapp test"max_user_connections = 2}
参数说明
类型 | 名称 | 数据类型 | 说明 |
必填 | region | string | 地域,如:ap-guangzhou,默认使用 provider 中定义的 region
也可以在 resource 中指定地域,覆盖默认设置 |
必填 | account_name | string | 账户名,包含字母、数字和_,以字母开头,以字母或数字结尾,长度1-30 |
必填 | account_password | string | 密码,密码长度范围为8到64个字符 |
必填 | cluster_id | string | 集群 ID |
必填 | host | string | 主机(%或 ipv4 地址) |
可选 | availability_zone | string | 可用区 |
可选 | count | int | 资源数量,默认为 1
如果为 0 则不创建资源 |
可选 | activity_id | int | 计费活动 ID,保留字段 |
可选 | description | string | 描述 |
可选 | max_user_connections | int | 用户最大连接数,不能大于10240 |
生成 | id | string | 资源实例 ID |
生成 | create_time | string | 资源创建时间 |