» Auth0 Provider

The Auth0 provider is used to interact with Auth0 applications and APIs. It provides resources that allow you to create and manage clients, resource servers, client grants, connections, email providers and templates, rules and rule variables, users, roles, tenants, and custom domains as part of a Terraform deployment.

Use the navigation to the left to read about the available resources.

» Example Usage

provider "auth0" {
  domain = "<domain>"
  client_id = "<client-id>"
  client_secret = "<client-secret>"
  debug = "<debug>"
}

» Argument Reference

  • domain - (Required) Your Auth0 domain name. It can also be sourced from the AUTH0_DOMAIN environment variable.
  • client_id - (Required) Your Auth0 client ID. It can also be sourced from the AUTH0_CLIENT_ID environment variable.
  • client_secret - (Required) Your Auth0 client secret. It can also be sourced from the AUTH0_CLIENT_SECRET environment variable.
  • debug - (Optional) Indicates whether or not to turn on debug mode.

» Environment Variables

You can provide your credentials via the AUTH0_DOMAIN, AUTH0_CLIENT_ID and AUTH0_CLIENT_SECRET environment variables, respectively.

provider "auth0" {}

Usage:

$ export AUTH0_DOMAIN="<domain>"
$ export AUTH0_CLIENT_ID="<client-id>"
$ export AUTH0_CLIENT_SECRET="<client_secret>"
$ terraform plan