terraform-provider-stackitp.../docs/data-sources/service_account.md
Mauritz Uphoff 23e9a25b4f
feat: add stackit service account creation to tf provider (#708)
* feat: implement service account resource/datasource
2025-03-19 16:51:56 +01:00

1.3 KiB

page_title subcategory description
stackit_service_account Data Source - stackit Service account data source schema. ~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources for how to opt-in to use beta resources.

stackit_service_account (Data Source)

Service account data source schema.

~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide for how to opt-in to use beta resources.

Example Usage

data "stackit_service_account" "sa" {
  project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  email      = "sa01-8565oq1@sa.stackit.cloud"
}

Schema

Required

  • email (String) Email of the service account.
  • project_id (String) STACKIT project ID to which the service account is associated.

Read-Only

  • id (String) Terraform's internal resource ID, structured as "project_id,email".
  • name (String) Name of the service account.