Custom/Flexible workspace role assignment

For microsoft Fabric, we have Terraform HCL built in configs.

[Terraform Registry](https://Fabric workspace Role Assignment)

I have a workspace_role_assignment.yml whereby permission has been granted for each environment within each workspace. This terraform seems to have a restriction where role can only be Admin, Viewer or Contributor.

Sample

-prinicipal: workspace_name
-principal_type: Group
-envs:
-dev:
   role: Viewer
-production
  role: None

The process breaks if an environment is skipped, or None value given.

Looking for an alternate quick workaround, that can help achieve this.

Thanks in advance.