auth0 / terraform-provider-auth0

The Auth0 Terraform Provider is the official plugin for managing Auth0 tenant configuration through the Terraform tool.
https://registry.terraform.io/providers/auth0/auth0/latest/docs
Mozilla Public License 2.0
157 stars 73 forks source link

auth0_branding: Provider produced inconsistent final plan #979

Open bendiknesbo opened 4 days ago

bendiknesbo commented 4 days ago

Checklist

Description

Sometimes, when applying a change to auth0_branding, where we change universal_login.body, we get the following error from Terraform:

Error: Provider produced inconsistent final plan

When expanding the plan for auth0_branding.default to include new values learned so far during apply, provider "registry.terraform.io/auth0/auth0" produced an invalid new value for .universal_login[0].body: was cty.StringVal(<old value>), but now cty.StringVal(<new value>).

This is a bug in the provider, which should be reported in the provider's own issue tracker.

A new Terraform Apply resolves the issue.

Expectation

I would expect it to not fail, and properly apply the new branding.

Reproduction

I don't have a minimal repro example, as this is only occurring sometimes, not all of the times.

Our branding-block looks like this:

resource "auth0_branding" "default" {
  favicon_url = "<some url>"
  universal_login {
    body = templatefile(
      "<some HTML template path>",
      {
        somekey = {
          somevar  = "some-value"
          someothervar = "some-other-value"
        }
      }
    )
  }
}

Auth0 Terraform Provider version

1.3.0

Terraform version

1.5.7