Skip to content

Active Directory as Code»

KopiCloud_AD_API

Use KopiCloud AD Terraform Provider to automate your Active Directory and Microsoft DNS tasks in the public cloud (AWS, Azure, GCP, and OCI).

azure-gcp-aws-terraform

We developed a Terraform Provider to interact with the KopiCloud AD API from your IaC code and CI/CD pipelines.

Explore our Terraform Provider Documentation or clone examples from our GitHub Repos, and you can create CI/CD pipelines to interact with AD and Microsoft DNS in minutes!


Set up the Terraform Provider»

To configure the Terraform provider, log in to the KopiCloud AD API Management Console and generate an Authentication Token.

KopiCloud AD uses Authentication Tokens to authenticate to AD instead of usernames and passwords.

Then, 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"
}