Configuring the Terraform provider

Configure the provider

Add the following provider configuration to your Terraform configuration file (for example, main.tf). You can specify credentials directly in the provider block or use environment variables.

terraform {
  required_providers {
    sectigo = {
      source = "terraform.local/local/sectigo"
    }
  }
}

provider "sectigo" {
  host         = "https://cert-manager.com"  # or use SECTIGO_HOST env var
  username     = "admin"                      # or use SECTIGO_USERNAME env var
  password     = "secret"                     # or use SECTIGO_PASSWORD env var
  customer_uri = "mycompany"                  # or use SECTIGO_CUSTOMER_URI env var
}

Environment variables

As an alternative to specifying credentials in the provider block, you can use the following environment variables:

Parameter Description

SECTIGO_HOST

Your API endpoint URL.

SECTIGO_USERNAME

Your SCM Admin username.

SECTIGO_PASSWORD

Your SCM Admin password.

SECTIGO_CUSTOMER_URI

Your SCM customer identifier.