Skip to main content

Prerequisites

  • A Helm provider configured for your cluster.
  • An organization owner’s API key with organization:manage, set as COSTGRAPH_API_KEY.
  • An operator API key with operator:read and operator:write for your CostGraph tenant.
  • That operator key stored as apiKey in the costgraph-collector Secret, in the costgraph namespace.

AKS configuration

Assuming your Terraform configuration already defines an AKS cluster like this, use its name when registering it in CostGraph.

Register the cluster

Add CostGraph to your existing Terraform provider configuration.
Look up your CostGraph tenant by name and reference the existing cluster. Replace production with your tenant’s name.

Install the operator

Add a Helm release that uses the registered cluster name and your operator key.
Review and apply the changes.
Terraform registers the cluster and installs the operator. Open Kubernetes clusters to view its costs and usage. For full provider resource coverage, see the CostGraph Terraform provider documentation in the Terraform Registry.