Installation
Add the provider to yourrequired_providers block:
terraform init to install the provider.
Provider configuration
Arguments
Resources
archil_disk
Creates and manages an Archil disk. A storage mount is optional.Arguments
Mount block arguments
All disk attributes require replacement — changing any attribute will destroy and recreate the disk.
Attributes
S3 bucket resource policy
When ans3 mount has no access keys, Archil is authorized through a bucket resource policy. A policy attached to your bucket grants access to Archil’s IAM role, and an archilSessionId condition scopes that grant to this one disk.
Principal ARN varies by Archil region, see S3 Object Storage for the full table and policy details.
If your bucket’s policy is managed outside this configuration, either export the policy with an output and apply it separately or set session_id explicitly in the mount block.
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. For token users the server generates a cryptographically secure mount token and returns it in thetoken attribute.
Arguments
Attributes
Data sources
archil_disk
Look up an existing Archil disk by ID or name.Arguments
Exactly one ofid or name must be set.
Attributes
Full example
This example creates a disk with an S3 mount authorized by static credentials, a disk user, and an API token. As with the provider’sapi_key, pass real credentials in through variables rather than hardcoding them: