Inconsistent Configuration of Keycloak using Terraform: Why is my Terraform script sometimes not applying all configuration changes to Keycloak?

Hi dear reader

I am using keycloak in my dev env to learn how can I integrate it with NestJS and ReactJS. So I am using Docker Compose and Terraform to configure it. But I realized that it won’t create roles and also does not create new attributes for the user. Now I am a bit lost what is wrong with this Keycloak thing. Here you can find a more in depth track of what I’ve done and what is my Terraform scripts: Add new attributes to the user wont work all the times, it works randomly · Issue #831 · mrparkers/terraform-provider-keycloak · GitHub

The reason I created the issue in the mrparkers/terraform-provider-keycloak was that I thought it must be the Terraform provider problem. I was also suspicious of docker image, So I used different images and I gain nothing since they still behaved inconsistent. Any help would be appreciated.