If I import a client and roles, and imediatly do a plan, I should only see the real changes, like composite_roles defined on my realm but not in my plan:
Actual behaviour:
After import, a new plan will try to replace my client and all of it's roles.
Client and roles were imported with these commands:
It appears to be safe to just ignore the realm id for these resources in my case. The credentials provided to terraform/tofu only have access to that realm anyway so there's never a possiblily that the realm could be wrong.
Expected behavour:
If I import a client and roles, and imediatly do a plan, I should only see the real changes, like composite_roles defined on my realm but not in my plan:
Actual behaviour:
After import, a new plan will try to replace my client and all of it's roles.
Client and roles were imported with these commands:
Hotfix
It appears to be safe to just ignore the realm id for these resources in my case. The credentials provided to terraform/tofu only have access to that realm anyway so there's never a possiblily that the realm could be wrong.