» scaleway_instance_placement_group

Creates and manages Compute Instance Placement Groups. For more information, see the documentation.

» Example Usage

resource "scaleway_instance_placement_group" "availability_group" {}

» Arguments Reference

The following arguments are supported:

  • name - (Optional) The name of the placement group.
  • policy_type - (Defaults to max_availability) The policy type of the placement group. Possible values are: low_latency or max_availability.
  • policy_mode - (Defaults to optional) The policy mode of the placement group. Possible values are: optional or enforced.
  • zone - (Defaults to provider zone) The zone in which the placement group should be created.
  • organization_id - (Defaults to provider organization_id) The ID of the project the placement group is associated with.

» Attributes Reference

In addition to all above arguments, the following attributes are exported:

  • id - The ID of the placement group.
  • policy_respected - Is true when the policy is respected.

» Import

Placement groups can be imported using the {zone}/{id}, e.g.

$ terraform import scaleway_instance_placement_group.availability_group fr-par-1/11111111-1111-1111-1111-111111111111