Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auth0_branding: Provider produced inconsistent final plan #979

Open
6 tasks done
bendiknesbo opened this issue Jul 1, 2024 · 0 comments
Open
6 tasks done

auth0_branding: Provider produced inconsistent final plan #979

bendiknesbo opened this issue Jul 1, 2024 · 0 comments
Labels
🪲 bug Something isn't working

Comments

@bendiknesbo
Copy link

Checklist

  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have upgraded to the latest version of this provider and the issue still persists.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

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

@bendiknesbo bendiknesbo added the 🪲 bug Something isn't working label Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant