Terraform provider not updating SMS MFA enrollment template

Overview

We are using terraform to deploy changes to Auth0. We have this code snippet:

resource "auth0_guardian" "mfa_guardian" {
 policy = "never"
 email = false
 otp = false
 recovery_code = false
 phone {
  provider = "phone-message-hook"
  message_types = ["sms"]
  options {
   enrollment_message = "Custom message here. When prompted, enter the following 
   security code - {{code}}."
   verification_message = "Custom message here. When prompted, enter the following 
   security code - {{code}}.
  }
 }
}

When deployed, terraform is able to acknowledge this code. However, the Auth0 enrollment and verification template for Phone Message MFA does not get updated.
image.png

Can you let me know why it's not working?

Applies To

  • Terraform

Cause

The customer was using an older version of the Auth0 Terraform provider (v0.39.0). A change was made to a later version making it so that older versions may not be able to update the enrollment_message and verification_message for SMS MFA.

Solution

Updating the Auth0 Terraform provider to v0.49.0 resolved this issue for the customer.

Recommended content

No recommended content found...