--- title: "Onboard an AWS account with Terraform" slug: "onboard-an-aws-account-with-terraform" updated: 2026-11-05T09:45:58Z published: 2026-11-05T09:45:58Z canonical: "docs.zesty.co/onboard-an-aws-account-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 an AWS account with Terraform This section describes how to use the Zesty AWS account Terraform module to connect AWS accounts to Zesty and enable Commitment Manager, Zesty Compute Optimization (“Compute Optimization”), or base read-only access. The module creates and manages the AWS account resources required by Zesty, including: - an IAM role that Zesty can assume - an IAM policy with the permissions required by the selected products - an external ID for secure role assumption - a Cost and Usage Report (CUR) and S3 bucket when required, or access to an existing CUR - Athena and Glue resources when Compute Optimization is enabled on a management account - Zesty account registration - Helm values for Compute Optimization cluster installation when Compute Optimization is enabled Use one module block for each AWS account. When multiple Zesty products are enabled in the same AWS account, they share the same IAM role, IAM policy, and Zesty account registration.