tfe_team_token

Generates a new team token and overrides existing token if one exists.

Example Usage

Basic usage:

resource "tfe_team" "test" {
  name         = "my-team-name"
  organization = "my-org-name"
}

resource "tfe_team_token" "test" {
  team_id = tfe_team.test.id
}

Argument Reference

The following arguments are supported:

Example Usage

When a token has an expiry:

resource "tfe_team" "test" {
  name         = "my-team-name"
  organization = "my-org-name"
}

resource "time_rotating" "example" {
  rotation_days = 30
}

resource "tfe_team_token" "test" {
  team_id = tfe_team.test.id
  expired_at = time_rotating.example.rotation_rfc3339
}

Attributes Reference

Import

Team tokens can be imported; use <TEAM ID> as the import ID. For example:

terraform import tfe_team_token.test team-47qC3LmA47piVan7