-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extract more "keycloak_realm" attributes to separate resources #1111
Comments
Forgot to mention that having more realm level attributes would also help mange |
@zam6ak what you are asking for is possible: The caveat here is that Terraform has an ongoing issue, where you are not allowed to use an import block in a module. See: hashicorp/terraform#33474. So you need to hand it over from the root module to the module that defines your master realm. Also the problem is way more complex. As so many attributes are set on the RealmRepresentation. For example Policies: #910 (comment) |
you are referring to TF resource import as documented here - correct?
Looking at the REST API docs for RealmRepresentation, I think I understand the issue.... There are no separate endpoints for managing these realm attributes, thus extracting these into separate resources is challenging (partial updates). |
Yes I am.
Ive never tried to delete the master realm resource. As we are just federating to Entra-ID, I don't see a big issue. All of our configuration is inside gitlab. So when something is bricked, I would just redeploy it. Indeed we only had problems with the Authorization Flows order, that is fixed as of 5.0.0.
I totally agree. As the provider is open source, someone can come in and change that. |
Description
In deployments where multiple realms with need to be created, reusing certain realm level settings is currently tedious and repetitive.
Discussion
No response
Motivation
No response
Details
Example 1.
keycloak_realm.smtp_server
Example 2.
keycloak_realm.attributes
keycloak_realm_events
but this resource does not "capture"adminEventsExpiration
because this setting is (for some reason) part of realm level attributes. so whilekeycloak_realm_events
resource can be made reusable (create it in "common" module and re-use in other realm level modules), realm attributes cannotExample 3.
keycloak_realm.security_defenses
The text was updated successfully, but these errors were encountered: