Authentication

Authenticate with an API Key

Authenticating with an API key is the recommended authentication method for most scenarios, and is the method used in the examples on this site.

To use the Terraform provider with an API Key, first generate an API key from the web interface or via the API or an SDK.

Note that when using a user-specific API key, if the user is an administrator, you will have full access to the entire API. If the user is not an administrator, you will only be able to access files that user can access, and no access will be granted to site administration functions in the API.

Example Configuration

provider "files" {
  api_key = "YOUR_API_KEY"
}

Environment Variable

# Alternatively, you can set the API key as an environment variable.
export FILES_API_KEY="YOUR_API_KEY"