• 热门
  • 基础
  • 数据库
  • 安全
  • 大数据
  • 人工智能
  • 混合云
  • 开发与运维
  • 企业应用

应用服务

行业引擎

全部文档
当前文档

暂无内容

如果没有找到您期望的内容,请尝试其他搜索词

文档中心

mongodb_repset_instance

最近更新时间:2019-12-13 15:39:02

ksyun_mongodb_instance

Provides an replica set MongoDB resource.

Example Usage

resource "ksyun_mongodb_instance" "default" {
  name = "InstanceName"
  instance_account = "root"
  instance_password = "admin"
  instance_class = "1C2G"
  storage = 5
  node_num = 3
  vpc_id = "VpcId"
  vnet_id = "VnetId"
  db_version = "3.6"
  pay_type = "byDay"
  iam_project_id = "0"
  availability_zone = "cn-shanghai-3b"
}

Argument Reference

The following arguments are supported:

  • name - (Required) The name of instance, which contains 6-64 characters and only support Chinese, English, numbers, ‘-’, ‘_’.
  • instance_account - (Optional) The administrator name of instance, if not defined instance_account, the instance will use root.
  • instance_password - (Required) The administrator password of instance.
  • instance_class - (Required) The class of instance cpu and memory.
  • storage - (Required) The size of instance disk, measured in GB (GigaByte).
  • node_num - (Required) The num of instance node.
  • vpc_id - (Required) The id of VPC linked to the instance.
  • vnet_id - (Required) The id of subnet linked to the instance.
  • db_version - (Required) The version of instance engine, and support 3.2 and 3.6
  • pay_type - (Optional) Instance charge type, if not defined pay_type, the instance will use byMonth.
  • duration - (Optional) The duration of instance use, if pay_type is byMonth, the duration is required.
  • iam_project_id - (Optional) The project id of instance belong, if not defined iam_project_id, the instance will use 0.
  • availability_zone - (Required) Availability zone where instance is located.
文档导读
纯净模式常规模式

纯净模式

点击可全屏预览文档内容

鼠标选中内容,快速反馈问题

如果在文档使用中出现问题,可选中有问题的部分进行快速反馈,我们将跟进处理。
不再提示
好的,我知道了

聆听反馈