Keycloak by default enables few built in clients when a new realm is created. I want to disable a built-in client for every realm created using Terraform.
How can I do it only using Terraform?
Keycloak by default enables few built in clients when a new realm is created. I want to disable a built-in client for every realm created using Terraform.
How can I do it only using Terraform?
Since the default Terraform keycloak provider does not expose any resources for configuring built-in clients, one option is to use null_resource as described in another stackoverflow question Terraform REST API calls with cURL
v4.0.0 of the Keycloak Terraform provider added the import
argument to the keycloak_openid_client
resource, which allows you to automatically import clients that Keycloak creates by default without needed to run terraform import
.