Resource
TFC Configuration used by Waypoint to administer TFC workspaces and applications.
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
}
tfc_org_name
(String) The Terraform Cloud Organization with which the token is associated.token
(String, Sensitive) Terraform Cloud team token. The token must include permissions to manage workspaces and applications.project_id
(String) Waypoint Project ID to associate with the TFC configid
(String) Internal identifier