Configure advanced Terraform scenarios

Prev Next

Configure deployments that combine multiple Zesty products or AWS accounts.

Onboard Commitment Manager in a Management account and Kompass in a Linked account

This is a common multi-account configuration.

Use one module block and one AWS provider alias for each AWS account:

provider "aws" {

  alias  = "management"

  region = "us-east-1"

}

provider "aws" {

  alias  = "linked"

  region = "us-west-2"

}

provider "zesty" {}

module "management_account" {

  source  = "zesty-co/zesty-account/aws"

  version = "~> 0.1.1"

  providers = {

    aws = aws.management

  }

  account_type = "management"

  cm           = {}

}

module "linked_account" {

  source  = "zesty-co/zesty-account/aws"

  version = "~> 0.1.1"

  providers = {

    aws = aws.linked

  }

  account_type = "linked"

  kompass      = {}

}

Install Kompass in linked-account EKS clusters using:

module.linked_account.kompass_values_yaml

See the complete management-and-linked example.

Enable Commitment Manager and Kompass in the same management account

Use one module block when both products use the same AWS account:

module "zesty_account" {

  source  = "zesty-co/zesty-account/aws"

  version = "~> 0.1.1"

  account_type = "management"

  cm      = {}

  kompass = {}

}

The module creates:

  • One IAM role

  • One merged IAM policy

  • One CUR

  • One set of Athena and Glue resources

  • One Zesty account registration

© 2026 Zesty. All Rights Reserved

info@zesty.co