--- title: "Onboard Compute Optimization with Terraform" slug: "onboard-kompass-with-terraform" updated: 2026-11-05T09:45:55Z published: 2026-11-05T09:45:55Z canonical: "docs.zesty.co/onboard-kompass-with-terraform" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.zesty.co/llms.txt > Use this file to discover all available pages before exploring further. # Onboard Compute Optimization with Terraform Compute Optimization onboarding has these separate parts: 1. Account onboarding gives Zesty access to the AWS account and produces Kompass Helm values. 2. Cluster installation installs Compute Optimization into each EKS cluster. These steps are separate because one AWS account can contain multiple EKS clusters. You can onboard Compute Optimization in a Linked account or a Management account. ### Onboard Compute Optimization in a linked account ```plaintext module "zesty_account" {  source  = "zesty-co/zesty-account/aws"  version = "~> 0.1.1"  account_type = "linked"  kompass = {} } ``` This configuration: - Creates the shared IAM role and policy - Registers Compute Optimization - Outputs **kompass_values_yaml** It does not create CUR, Athena, or Glue resources. ### Onboard Compute Optimization in a management account ```plaintext module "zesty_account" {  source  = "zesty-co/zesty-account/aws"  version = "~> 0.1.1"  account_type = "management"  kompass = {} } ``` This configuration also creates or references a CUR and creates the Athena and Glue resources required by Compute Optimization management-account billing access.