Configure "Use Custom Domain in Emails" via the Auth0 Terraform Provider
Last Updated:
Overview
This article explains whether it is possible to enable the Custom Domains feature Use custom domains in emails using Terraform.
Applies To
- Terraform
- Auth0
Solution
It is possible to set "Use Custom Domain in Emails" via Terraform, but not within the auth0_custom_domain resource.
- The following tenant level flag is used so the setting to configure via Terraform is within the optional tenant flags that can be set using the
auth0_tenant resource.-
Resource:
auth0_tenantenable_custom_domain_in_emails = true
-
Before this flag can be enabled, a custom domain must already be present and verified status.
See Terraform's documentation for more information on this setting.