Disable google-oauth2 in Terraform

I’m managing all tenant resources in Terraform but our account has google-oauth2 enabled for all applications. I’ve imported the resource into the terraform resource below. Every time I run terraform apply, it changes disable_signup to true but there’s something within Auth0 that keeps re-enabling it. Is there anyway to disable this in Terraform or do I need to do it in the UI?

resource “auth0_connection” “google” {
name = “google-oauth2”
strategy = “google-oauth2”

options {
disable_signup = true
}
}

Hi @kim.kinnaird

Welcome to the Auth0 Community!

I am sorry about the late reply to your post!

You should be able to do this via the auth0_connection_clients by leaving the enabled_clients array empty as seen in this documentation:

resource "auth0_connection_clients" "my_conn_clients_assoc" {
  connection_id = auth0_connection.my_conn.id
  enabled_clients = []
}

If you have any other questions, feel free to leave a reply!

Kind Regards,
Nik