The Auth0 provider is used to interact with the Auth0 Management API in order to configure an Auth0 Tenant.
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, custom domains, and many more, as part of a Terraform deployment.
Use the navigation to the left to read about the available resources and data sources.
provider "auth0" {
domain = "<domain>"
client_id = "<client-id>"
client_secret = "<client-secret>"
debug = "<debug>"
}
api_token
(String) Your Auth0 management api access token. It can also be sourced from the AUTH0_API_TOKEN
environment variable. It can be used instead of client_id
+ client_secret
. If both are specified, api_token
will be used over client_id
+ client_secret
fields.audience
(String) Your Auth0 audience when using a custom domain. It can also be sourced from the AUTH0_AUDIENCE
environment variable.client_id
(String) Your Auth0 client ID. It can also be sourced from the AUTH0_CLIENT_ID
environment variable.client_secret
(String) Your Auth0 client secret. It can also be sourced from the AUTH0_CLIENT_SECRET
environment variable.debug
(Boolean) Indicates whether to turn on debug mode.domain
(String) Your Auth0 domain name. It can also be sourced from the AUTH0_DOMAIN
environment variable.You can provide your credentials via the AUTH0_DOMAIN
, AUTH0_CLIENT_ID
and AUTH0_CLIENT_SECRET
or AUTH0_API_TOKEN
environment variables, respectively.
provider "auth0" {}
AUTH0_DOMAIN="<domain>" \
AUTH0_CLIENT_ID="<client-id>" \
AUTH0_CLIENT_SECRET="<client_secret>" \
terraform plan
To import Auth0 resources, you will need to know their ID. You can use the Auth0 API Explorer to find your resource ID.