Skip to content

Terraform Authentication»

Terraform KopiCloud_AD_API

Understand how to configure KopiCloud AD Terraform Provider authentication.


Set up the Terraform Provider»

Login to the KopiCloud AD API Management Portal and generate a token.

In your provider.tf file, configure the KopiCloud AD Terraform Provider with the hostname of your API server and the authentication token.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
terraform {
  required_providers {
    kopicloud = {
      source = "kopicloud-ad-api/ad"
    }
  }
}

provider "kopicloud" {
  host  = "https://api.kopicloud.local"
  token = "Basic b3NjYWI8UzFsdkyQMVsuD70"
}