Overview
This article explains whether it is possible to enable the Custom Domains feature “Use custom domains in emails” using Terraform.
Applies To
- Terraform
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 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 in ready status.
See Terraform’s documentation for more information on this setting.