keycloak / terraform-provider-keycloak

Terraform provider for Keycloak
https://registry.terraform.io/providers/mrparkers/keycloak/latest/docs
Apache License 2.0
648 stars 317 forks source link

Setting clients default roles using keycloak_default_roles gives error #930

Open mustafaStakater opened 9 months ago

mustafaStakater commented 9 months ago

Problem

Can we set client roles using tf resource keycloak_default_roles ? i get the following error when creating an default role with client roles present.

keycloak_default_roles.default_roles: Creating...
╷
│ Error: defaultRoles not found by name
│ 
│   with keycloak_default_roles.default_roles,
│   on main.tf line 17, in resource "keycloak_default_roles" "default_roles":
│   17: resource "keycloak_default_roles" "default_roles" {
│ 
╵

Steps to reproduce

mustafaStakater commented 8 months ago

Theres a pull request for this already https://github.com/mrparkers/terraform-provider-keycloak/pull/764