> ## Documentation Index
> Fetch the complete documentation index at: https://clumio.reclear.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure the Terraform provider

> Install the Clumio provider, connect AWS, and preview protection changes.

This quickstart creates a reviewable Terraform plan for an AWS connection. Add protection groups
and policies after the connection is visible in Clumio.

<Note>
  **Prototype note.** This configuration is based on public provider documentation and has not been
  validated against a live Clumio tenant.
</Note>

## Before you start

* Terraform 1.0 or later;
* an AWS account where you can create the required IAM resources; and
* a Clumio API token for the selected control plane.

## Configure credentials

```bash theme={null}
export CLUMIO_API_TOKEN="<your_api_token>"
export CLUMIO_API_BASE_URL="https://us-west-2.api.clumio.com"
```

## Declare the provider

```hcl theme={null}
terraform {
  required_providers {
    clumio = {
      source  = "clumio-code/clumio"
      version = "~> 0.24.0"
    }
  }
}

provider "clumio" {}
```

## Add an AWS connection

```hcl theme={null}
data "aws_caller_identity" "current" {}
data "aws_region" "current" {}

resource "clumio_aws_connection" "review" {
  account_native_id = data.aws_caller_identity.current.account_id
  aws_region        = data.aws_region.current.region
  description       = "Documentation PoC connection"
}
```

Run:

```bash theme={null}
terraform init
terraform plan
```

Review the plan before applying it. The complete bootstrap module and protection resources are in
[Manage protection with Terraform](/developer-tools/terraform).

## Continue

* [Connect an AWS account](/get-started/connect-aws)
* [Create and rotate API tokens](/developer-tools/authentication)
* [Terraform provider reference](https://registry.terraform.io/providers/clumio-code/clumio/latest/docs)
