Skip to main content
The Archil Terraform provider enables you to manage Archil resources using Infrastructure as Code. It supports creating and managing disks, API tokens, and disk user authorizations.

Installation

Add the provider to your required_providers block:
Then run terraform init to install the provider.

Provider Configuration

Arguments

Store your API key securely. Use a terraform.tfvars file (and add it to .gitignore) or an environment variable rather than hardcoding the key in your configuration.

Resources

archil_disk

Creates and manages an Archil disk with a storage mount.

Arguments

Mount Block Arguments

All disk attributes require replacement — changing any attribute will destroy and recreate the disk.

Attributes


archil_api_token

Creates and manages an Archil API token for programmatic access.

Arguments

Attributes


archil_disk_user

Adds an authorized user to an Archil disk. Supports token-based and AWS STS authentication.

Arguments

Attributes

Data Sources

archil_disk

Look up an existing Archil disk by ID or name.

Arguments

Exactly one of id or name must be set.

Attributes

Full Example

This example creates a disk with an S3 mount, an API token, and authorizes the token to access the disk:

Import

Disks can be imported using their ID: