hcp_waypoint_tfc_config Resource

TFC Configuration used by Waypoint to administer TFC workspaces and applications.

Example Usage

resource "hcp_waypoint_tfc_config" "test" {
  token        = "token value"
  tfc_org_name = "example-tfc-org"
}

This resource can in conjunction with resources from the TFE provider to create an appropriate Team level API token for use with configuring Waypoint:

provider "tfe" {
  # see https://registry.terraform.io/providers/hashicorp/tfe/latest/docs
  # for more information on how to configure the TFE provider
}

data "tfe_team" "test" {
  name         = "example-team"
  organization = "example-tfc-org"
}

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

resource "hcp_waypoint_tfc_config" "test" {
  token        = tfe_team_token.test.token
  tfc_org_name = data.tfe_team.test.organization
}

Schema

Required

Optional

Read-Only