terraform-provider-stackitp.../docs/data-sources/affinity_group.md
Ruben Hönle 53a3697850
feat(iaas): support for v2 API (#1070)
relates to STACKITTPR-313
2025-12-17 15:40:46 +01:00

1.2 KiB

page_title subcategory description
stackit_affinity_group Data Source - stackit Affinity Group schema. Must have a region specified in the provider configuration.

stackit_affinity_group (Data Source)

Affinity Group schema. Must have a region specified in the provider configuration.

Example Usage

data "stackit_affinity_group" "example" {
  project_id        = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  affinity_group_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Schema

Required

  • affinity_group_id (String) The affinity group ID.
  • project_id (String) STACKIT Project ID to which the affinity group is associated.

Optional

  • region (String) The resource region. If not defined, the provider region is used.

Read-Only

  • id (String) Terraform's internal resource identifier. It is structured as "project_id,region,affinity_group_id".
  • members (List of String) Affinity Group schema. Must have a region specified in the provider configuration.
  • name (String) The name of the affinity group.
  • policy (String) The policy of the affinity group.