Download the hcl configuration using the download button, or if you want to paste the file contents directly into a file, copy the hcl file contents to your clipboard using the copy button.
On your local machine or an instance in the product cluster, export the TFE_TOKEN and TFE_HTTP_ADDR environment variables so hcdiag can query the product.
The token should be a user token for an account with administrator privileges so the admin API can be queried.
For more information about how to configure hcdiag-ext, see the README.
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# Terraform Enterprise checks
host {
selects = [":"] # noop to ensure no other default hcdiag host commands are auto-loaded
shell {
run = ":"
}
}
product "terraform-ent" {
selects = [
"GET /api/v2/admin/release",
"GET /api/v2/admin/runs?page%5Bsize%5D=1",
"GET /api/v2/admin/workspaces?page%5Bsize%5D=1",
]
# check version
GET {
path = "/api/v2/admin/release"
}
# check enterprise features in use
GET {
path = "/api/v2/admin/runs?page%5Bsize%5D=1"
}
# check workspace count
GET {
path = "/api/v2/admin/workspaces?page%5Bsize%5D=1"
}
}