OpenTofu
OpenTofu, an open-source, community-driven fork of Terraform, lets you manage your Files.com resources using Infrastructure-as-Code (IaC) processes.
OpenTofu users define and configure data center infrastructure using a declarative configuration language known as the OpenTofu Configuration Language.
The Files.com Provider for OpenTofu allows you to automate the management of your Files.com site, including resources such as users, groups, folders, share links, inboxes, automations, security, encryption, access protocols, permissions, remote servers, remote syncs, data governance, and more.
Getting Started with OpenTofu
- Install OpenTofu
- Define an OpenTofu Configuration for your Files.com resources
- Run OpenTofu
OpenTofu will provision and de-provision your Files.com resources based upon the configuration you defined.
Files.com Provider Configuration
The Files.com Provider needs to be configured with authentication credentials for your Files.com site. The Provider uses a Files.com API Key to authenticate.
The authorizations and permissions will match those of the associated with the API Key. For example, an API Key of a site administrator will be able to manage all resources while an API Key of a non-administrator can only manage that user's resources.
Connection Information
Ask your Files.com administrator to provide you with an API Key for the required user account or generate your own API Key within your Files.com user account. The Provider uses a single Files.com API Key.
Use the following OpenTofu configuration definitions to specify your connection and authentication to Files.com:
Managing Resources
Refer to the OpenTofu Provider online documentation and the Files.com API documentation for Terraform for details about the resources that can be managed.
Resource Examples
As an onboarding example, to create a partner account on your Files.com site, place them into a group, create a folder for them, and assign them permission to the folder, use the following sample configuration: