Skip to content
Odinex Cloud
Terraform providerReferenceResources

odinex_placement_group

Manages a placement group (servers of a spread group run on different hosts).

Manages a placement group (servers of a spread group run on different hosts).

Example Usage

resource "odinex_placement_group" "spread" {
  name     = "spread"
  location = "fra1"
}

Schema

Required

  • location (String) Location of the placement group, e.g. fra1.
  • name (String) Name of the placement group.

Optional

  • labels (Map of String) User-defined labels (key/value pairs). Up to 64 pairs; keys and values up to 63 characters.
  • type (String) Type of the placement group. Only spread is supported.

Read-Only

  • id (String) Unique ID of the resource.
  • servers (Set of Number) IDs of the servers in the group.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

terraform import odinex_placement_group.spread 2

On this page