Skip to main content

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

FlagDescription
--count intNumber of VMs to create. VMs will be created atomically with naming convention name-<number> (default: 1)
-f, --format stringOutput format. Supported formats: pretty, json (default: "pretty")
-h, --helpHelp for bulk-create
--ib-partition-id stringIB Partition if deploying with Infiniband
--jsonOutput in json format. Shorthand for --format json
--location stringLocation. List available locations with crusoe locations list
--name-prefix string[Required] VM name prefix. Alphanumeric characters, underscores and dashes are allowed
--project-id stringProject ID. Optional if Project Name is set in CRUSOE_DEFAULT_PROJECT env variable or the config file
--project-name stringProject 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 stringVPC 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.