# Branding theme configuration via terraform

**URL:** <https://community.auth0.com/t/branding-theme-configuration-via-terraform/102993>\
**Category:** Get Help\
**Tags:** branding, new-universal-login-page-templates\
**Created:** [March 21, 2023, 12:05pm UTC](https://community.auth0.com/t/branding-theme-configuration-via-terraform/102993 "2023-03-21T12:05:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![karolis.mazukna](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/karolis.mazukna/32/40957_2.png) [@karolis.mazukna](https://community.auth0.com/u/karolis.mazukna)\
**Post date:** [March 21, 2023, 12:05pm UTC](https://community.auth0.com/t/branding-theme-configuration-via-terraform/102993/1 "2023-03-21T12:05:32Z")

</div>

Hey, I am having trouble synchronising branding theme for universal login using terraform. When deploying it says

```auto
Error: 409 Conflict: There was an error creating branding settings: theme already exists

```

but I am unable to find its id to import to terraform so it would update instead of create.

TF Resource I am trying to use: [Terraform Registry](https://registry.terraform.io/providers/auth0/auth0/latest/docs/resources/branding_theme)

---

<div class="post-metadata">

**Author:** ![karolis.mazukna](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/karolis.mazukna/32/40957_2.png) [@karolis.mazukna](https://community.auth0.com/u/karolis.mazukna)\
**Post date:** [March 21, 2023, 12:28pm UTC](https://community.auth0.com/t/branding-theme-configuration-via-terraform/102993/2 "2023-03-21T12:28:01Z")

</div>

It seems that id of default theme is `default`, it imported succesfully into terraform, and it’s showing diff, but when deploying terraform it’s throwing error ` Error: 400 Bad Request: Path validation error: 'Object didn't pass validation for format theme-id: default' on property themeId (The ID of the theme).`

---

<div class="post-metadata">

**Author:** ![karolis.mazukna](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/karolis.mazukna/32/40957_2.png) [@karolis.mazukna](https://community.auth0.com/u/karolis.mazukna)\
**Post date:** [March 21, 2023, 12:34pm UTC](https://community.auth0.com/t/branding-theme-configuration-via-terraform/102993/3 "2023-03-21T12:34:50Z")

</div>

it seems that it’s fixed with latest provider version and latest terraform.

It works after upgrading to provider 0.45.0 from 0.42.0.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [March 21, 2023, 1:15pm UTC](https://community.auth0.com/t/branding-theme-configuration-via-terraform/102993/4 "2023-03-21T13:15:39Z")

</div>

Perfect! Thanks for sharing that with the rest of community!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 4, 2023, 1:16pm UTC](https://community.auth0.com/t/branding-theme-configuration-via-terraform/102993/5 "2023-04-04T13:16:14Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
