terraform-provider-stackitp.../docs/resources/server_service_account_attach.md
2025-03-26 09:23:25 +01:00

1.2 KiB

page_title subcategory description
stackit_server_service_account_attach Resource - stackit Service account attachment resource schema. Attaches a service account to a server. Must have a region specified in the provider configuration.

stackit_server_service_account_attach (Resource)

Service account attachment resource schema. Attaches a service account to a server. Must have a region specified in the provider configuration.

Example Usage

resource "stackit_server_service_account_attach" "attached_service_account" {
  project_id            = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  server_id             = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  service_account_email = "service-account@stackit.cloud"
}

Schema

Required

  • project_id (String) STACKIT project ID to which the service account attachment is associated.
  • server_id (String) The server ID.
  • service_account_email (String) The service account email.

Read-Only

  • id (String) Terraform's internal resource ID. It is structured as "project_id,server_id,service_account_email".