crusoe compute vms bulk-create
Create and start multiple VMs from an instance template. This operation is atomic and will either create all VMs or none.
Usage
crusoe compute vms bulk-create [flags]
Flags
| Flag | Description |
|---|---|
--count int | Number of VMs to create. VMs will be created atomically with naming convention name-<number> (default: 1) |
-f, --format string | Output format. Supported formats: pretty, json (default: "pretty") |
-h, --help | Help for bulk-create |
--ib-partition-id string | IB Partition if deploying with Infiniband |
--json | Output in json format. Shorthand for --format json |
--location string | Location. List available locations with crusoe locations list |
--name-prefix string | [Required] VM name prefix. Alphanumeric characters, underscores and dashes are allowed |
--project-id string | Project ID. Optional if Project Name is set in CRUSOE_DEFAULT_PROJECT env variable or the config file |
--project-name string | Project Name. Optional if set in CRUSOE_DEFAULT_PROJECT env variable or the config file |
--template-id string | [Required] Instance Template ID used to create VMs |
--vpc-subnet-id string | VPC Subnet ID. Subnet the VMs will be created in |
Examples
Create 4 VMs atomically from a template:
crusoe compute vms bulk-create \
--name-prefix training-node \
--template-id <template-id> \
--count 4 \
--location us-northcentral1-a
VMs will be named training-node-1, training-node-2, training-node-3, and training-node-4.