terraform - How to get reference to dedicated client scope - Stack Overflow

admin2025-04-17  3

In Keycloak 24 with Terraform mrparkers 4.4.0 I need to add a mapper to a dedicated client scope. All of the docs tell me to do it like this:

data "keycloak_openid_client_scope" "loadboard_scope" {
  realm_id = local.realm_names["drivers"]
  name     = "loadboard-dedicated" 
}

However, no matter what value I use for name, "loadboard" or "loadboard-dedicated" or "scope-loadboard" I keep getting an error during plan and/or apply:
expected provided client scope name to match 1 scope, but matched 0 scopes

How am I expected to add a mapper to the dedicated client scope?

转载请注明原文地址:http://www.anycun.com/QandA/1744897475a89172.html