tfe_agent_token

Each agent pool has its own set of tokens which are not shared across pools. These tokens allow agents to communicate securely with HCP Terraform.

Example Usage

Basic usage:

resource "tfe_organization" "test-organization" {
  name  = "my-org-name"
  email = "admin@company.com"
}

resource "tfe_agent_pool" "test-agent-pool" {
  name         = "my-agent-pool-name"
  organization = tfe_organization.test-organization.id
}

resource "tfe_agent_token" "test-agent-token" {
  agent_pool_id = tfe_agent_pool.test-agent-pool.id
  description   = "my-agent-token-name"
}

Argument Reference

The following arguments are supported:

Attributes Reference