» tfe_organization_token

Generates a new organization token, replacing any existing token. This token can be used to act as the organization service account.

» Example Usage

Basic usage:

resource "tfe_organization_token" "test" {
  organization = "my-org-name"
}

» Argument Reference

The following arguments are supported:

  • organization - (Required) Name of the organization.
  • force_regenerate - (Optional) If set to true, a new token will be generated even if a token already exists. This will invalidate the existing token!

» Attributes Reference

  • id - The ID of the token.
  • token - The generated token.

» Import

Organization tokens can be imported; use <ORGANIZATION NAME> as the import ID. For example:

terraform import tfe_organization_token.test my-org-name