You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have existing realms in my keycloak instance which were created by this provider. Now we have a requirement to enable "organizations" for these existing realms.
I saw this is not currently supported by this terraform provider. Then i tried the workaround using "magodo/restful" provider as suggested here but everytime i try to update the realms i get a "Conflict detected" error. Below is the terraform code i am trying to apply to update my existing realms. Please help! Please note, because of the number of realms across multiple keycloak instances , it is not possible to migrate them to the restful provider.
The organisation should be enabled under "Realm settings" using terraform
Actual behavior
Error: Create API returns 409
│
│ with restful_resource.realmdemo5restful,
│ on realm.tf line ***, in resource "restful_resource" "realmdemo5restful":
│ 481: resource "restful_resource" "realmdemo5restful" {
│
│ {"errorMessage":"Conflict detected. See logs for details"}
How to Reproduce?
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
I have existing realms in my keycloak instance which were created by this provider. Now we have a requirement to enable "organizations" for these existing realms.
I saw this is not currently supported by this terraform provider. Then i tried the workaround using "magodo/restful" provider as suggested here but everytime i try to update the realms i get a "Conflict detected" error. Below is the terraform code i am trying to apply to update my existing realms. Please help! Please note, because of the number of realms across multiple keycloak instances , it is not possible to migrate them to the restful provider.
`resource "keycloak_realm" "realmdemo5" {
realm = "demo5"
enabled = true
display_name = "demo5"
ssl_required = "external"
registration_allowed = true
reset_password_allowed = true
registration_email_as_username = true
login_with_email_allowed = true
remember_me = true
verify_email = true
edit_username_allowed = true
attributes = {
userProfileEnabled = true
}
access_code_lifespan = "1h"
password_policy = var.password_policy
...
}
resource "restful_resource" "realmdemo5restful" {
check_existance = false
merge_patch_disabled = false
provider = restful
path = "/admin/realms"
#update_path = "$(path)/demo5"
update_path = "$(path)/demo5"
read_selector = "#(realm=="demo5")"
query = {
api-version = ["2020-06-01"]
}
update_method = "PUT"
body = {
realm = "demo5",
organizationsEnabled = true
}
}`
Version
26.0.5
Expected behavior
The organisation should be enabled under "Realm settings" using terraform
Actual behavior
Error: Create API returns 409
│
│ with restful_resource.realmdemo5restful,
│ on realm.tf line ***, in resource "restful_resource" "realmdemo5restful":
│ 481: resource "restful_resource" "realmdemo5restful" {
│
│ {"errorMessage":"Conflict detected. See logs for details"}
How to Reproduce?
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: