Skip to main content

Configuration as Code

If your team already uses Terraform or OpenTofu, you can bring Files.com Site configuration into the same version control, review, and deployment workflow. The Files.com provider manages resources such as users, Groups, folders, permissions, and connections alongside the other systems your team administers.

Consider this approach when you need repeatable configuration across environments, the same arrangement for several teams or exchanges, or reviewed changes to a deployment that code already manages. Add the Files.com provider to your existing configuration practice and choose which parts of the Site it will own.

The Files.com Terraform ReferenceExternal LinkThis link leads to an external website and will open in a new tab documents provider configuration, resource and data-source arguments, and import syntax for both Terraform and OpenTofu.

For occasional administrative changes or an operational script that performs a sequence of actions, the CLI can be a more direct fit. The web interface also supports routine administration without introducing configuration state to maintain.

Configuration Ownership

Choose which resources and settings the configuration will own. The web interface, CLI, identity provider, and other integrations can change some of the same objects. Independent tools managing the same users or Group memberships can undo one another's changes. A resource's presence in state also gives the tool authority over its deletion; removing configuration is a consequential change.

That scope can be narrower than the whole Site. For example, code can own folder structure, folder permissions, and Remote Server configuration while an identity provider owns users and Group membership through SCIM. Choose one owner for each resource and relationship rather than having both systems manage the same membership or account lifecycle. Configuration Lifecycle explains how to maintain that boundary.

For an existing Site, import the resources before applying configuration to them. For repeated arrangements, inputs and resource relationships let one definition establish several work areas without copying and maintaining separate configurations.

Configuration and File Workflows

Configuration as code establishes the resources that people and systems use. A tool can create a folder, assign a Group access, and configure a Remote Server, Sync, or Automation. The resulting file transfers and processing then run through Files.com's apps, protocols, and workflow features.

Files that people or business systems continually update need their own transfer and recovery arrangement, even when code manages the folders and permissions around them.