Skip to content

Conversation

@tuankiettruong
Copy link
Contributor

Added deletion_protection to prevent keycloak_realm resource from being deleted, even by removing resource from, which Terraform's life_cycle.prevent_destroy does not support

@sschu
Copy link
Contributor

sschu commented Oct 12, 2025

@tuankiettruong Can you elaborate why you think this is necessary? Terraform will tell you if your plan destroys a realm so you can react accordingly.

@tuankiettruong
Copy link
Contributor Author

If the plan output contains a lot of resources, it could be overlooked, and people still can delete it by mistake. Since a realm contains other resources like users, groups, events, so I think it would be good to be extra careful here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants