For the complete documentation index, see llms.txt. This page is also available as Markdown.

create

Create DBaaS Mongo Replicaset or Sharded Clusters for your chosen edition

Usage

ionosctl dbaas mongo cluster create [flags]

Aliases

For mongo command:

[m mdb mongodb mg]

For cluster command:

[c]

For create command:

[c]

Description

Create a MongoDB cluster. The required flags depend on the --edition you pick, because each edition bounds the topology and how sizing is expressed:

playground - Fixed single-instance sandbox. Type is forced to replicaset, --instances to 1, and the Playground template (1 core / 2 GB RAM / 50 GB storage) is applied automatically. No snapshots/restore. Only the always-required flags below are needed. business - Replicaset only. Sizing comes from a --template (bundle of cores/RAM/storage); defaults to the XS template if omitted. You must pass --instances (1 or 3). enterprise - Replicaset or sharded-cluster with EXPLICIT sizing. Templates are forbidden here; instead set --cores, --ram, --storage-size, --storage-type (all default to the smallest valid value). Enterprise unlocks sharding and point-in-time restore.

Always required (every edition): --name, --datacenter-id, --lan-id, --cidr.

Choosing type for enterprise: pass --type explicitly, or let it be inferred — setting --shards implies 'sharded-cluster', otherwise 'replicaset'. A sharded-cluster requires --shards (2-32); a replicaset requires --instances.

The cluster is provisioned into the same location as its datacenter (--location is inferred from --datacenter-id when omitted). All CIDRs in --cidr must be /24 and there must be one per instance.

Options

Examples

Last updated

Was this helpful?