# Deploying a custom login page using Terraform

**URL:** <https://community.auth0.com/t/deploying-a-custom-login-page-using-terraform/82064>\
**Category:** Product Feedback\
**Tags:** terraform, custom-login\
**Created:** [April 20, 2022, 12:33pm UTC](https://community.auth0.com/t/deploying-a-custom-login-page-using-terraform/82064 "2022-04-20T12:33:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ev-hje](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ev-hje/32/36744_2.png) [@ev-hje](https://community.auth0.com/u/ev-hje)\
**Post date:** [April 20, 2022, 12:33pm UTC](https://community.auth0.com/t/deploying-a-custom-login-page-using-terraform/82064/1 "2022-04-20T12:33:00Z")

</div>

**Feature:** add option for deploying a custom login page using Terraform.

**Description:** The property _custom\_login\_page_ on client _All Applications_ cannot be deployed using the current Terraform provder provided by Auth0.

**Use-case:** For customers using custom login pages with the Classic Universal Login experience this would be the preferred method of deploying the login page.

**Example:**

```auto
resource "auth0_branding" "my_brand" {
   custom_login_page {
      html = file("login.html")
   }
}

```

[auth0\_branding | Resources | auth0/auth0 | Terraform Registry](https://registry.terraform.io/providers/auth0/auth0/latest/docs/resources/branding)

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 20, 2022, 10:34pm UTC](https://community.auth0.com/t/deploying-a-custom-login-page-using-terraform/82064/2 "2022-04-20T22:34:28Z")

</div>

Thanks for the feedback @ev-hje!

---

<div class="post-metadata">

**Author:** ![anne.glines](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/anne.glines/32/34059_2.png) [@anne.glines](https://community.auth0.com/u/anne.glines)\
**Post date:** [April 27, 2022, 11:47pm UTC](https://community.auth0.com/t/deploying-a-custom-login-page-using-terraform/82064/3 "2022-04-27T23:47:56Z")

</div>

Looking through the Terraform docs there is [`auth0_global_client`](https://registry.terraform.io/providers/auth0/auth0/latest/docs/resources/global_client). Which houses the `custom_login_page` that you are looking for.

To get the global client id you go to “Tenant Settings” \> “Advanced” \> “Global Client Information”

---

<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:** [February 22, 2023, 11:34am UTC](https://community.auth0.com/t/deploying-a-custom-login-page-using-terraform/82064/4 "2023-02-22T11:34:42Z")

</div>



---

<div class="post-metadata">

**Author:** ![amin](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/amin/32/10144_2.png) [@amin](https://community.auth0.com/u/amin)\
**Post date:** [November 24, 2023, 2:17am UTC](https://community.auth0.com/t/deploying-a-custom-login-page-using-terraform/82064/5 "2023-11-24T02:17:29Z")

</div>

since [version 1.0 of Terraform provider](https://github.com/auth0/terraform-provider-auth0/blob/main/MIGRATION_GUIDE.md#global-client), it’s now done like this:

```auto
resource "auth0_pages" "cul_pages" {
  login {
    enabled = true
    html = file("../cul/login.html")
  }
}

```
