Skip to content

Commit

Permalink
add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadow649 committed Jul 20, 2023
1 parent 10cdb8e commit f712fe5
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions website/docs/r/team_service_account.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
subcategory: "Sysdig Platform"
layout: "sysdig"
page_title: "Sysdig: sysdig_team_service_account"
description: |-
Creates a team service account in Sysdig.
---

# Resource: sysdig_team_service_account

Creates a team service account in Sysdig.

-> **Note:** Sysdig Terraform Provider is under rapid development at this point. If you experience any issue or discrepancy while using it, please make sure you have the latest version. If the issue persists, or you have a Feature Request to support an additional set of resources, please open a [new issue](https://github.com/sysdiglabs/terraform-provider-sysdig/issues/new) in the GitHub repository.

## Example Usage

```terraform
resource "time_static" "example" {
rfc3339 = "2025-01-01T00:00:00Z"
}
resource "sysdig_monitor_team" "devops" {
name = "Monitoring DevOps team"
entrypoint {
type = "Explore"
}
}
resource "sysdig_team_service_account" "service-account" {
name = "read only"
role = "ROLE_TEAM_READ"
expiration_date = time_static.example.unix
team_id = sysdig_monitor_teamt.sample.id
}
```

## Argument Reference

* `name` - (Required) The team service account name.

* `role` - (Required) The role that is assigned to the service account. It can be a standard role or a custom team role ID.

* `expiration_date` (Required) The service account expiration date.

* `team_id` - (Required) The team where the service account belongs to.

* `system_role`- The service account system role. The only value supported is `ROLE_SERVICE_ACCOUNT`


## Attributes Reference

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

* `date_created` - The team service account creation date

* `api_key` - The api key to be using in API calls

## Import

Sysdig team service account can be imported using the ID, e.g.

```
$ terraform import sysdig_team_service_account.my_team_service_account 10
```

0 comments on commit f712fe5

Please sign in to comment.