* chore(examples): Add import examples for all resources Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> * Add guide: How to import resources Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> --------- Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
39 lines
978 B
Markdown
39 lines
978 B
Markdown
---
|
|
# generated by https://github.com/hashicorp/terraform-plugin-docs
|
|
page_title: "stackit_service_account Resource - stackit"
|
|
subcategory: ""
|
|
description: |-
|
|
Service account resource schema.
|
|
---
|
|
|
|
# stackit_service_account (Resource)
|
|
|
|
Service account resource schema.
|
|
|
|
## Example Usage
|
|
|
|
```terraform
|
|
resource "stackit_service_account" "sa" {
|
|
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
name = "sa01"
|
|
}
|
|
|
|
# Only use the import statement, if you want to import an existing service account
|
|
import {
|
|
to = stackit_service_account.import-example
|
|
id = "${var.project_id},${var.service_account_email}"
|
|
}
|
|
```
|
|
|
|
<!-- schema generated by tfplugindocs -->
|
|
## Schema
|
|
|
|
### Required
|
|
|
|
- `name` (String) Name of the service account.
|
|
- `project_id` (String) STACKIT project ID to which the service account is associated.
|
|
|
|
### Read-Only
|
|
|
|
- `email` (String) Email of the service account.
|
|
- `id` (String) Terraform's internal resource ID, structured as "`project_id`,`email`".
|