Terraform - '"genesyscloud_auth_role"' errors

Hi,

We are using terraform to roles in the environment and we are seeing below errors:
│ Error: mismatch on attribute permission_policies.871666982.action_set.1777816869:
│ expected value:
│ actual value: view

│ with genesyscloud_auth_role.Script_Designer_2899078499,
│ on genesyscloud.tf line 46694, in resource "genesyscloud_auth_role" "Script_Designer_2899078499":
│ 46694: resource "genesyscloud_auth_role" "Script_Designer_2899078499" {

Here is the resource info:
resource "genesyscloud_auth_role" "Script_Designer_2899078499" {
description = "Enables a user to create scripts, manage existing scripts, make scripts available for use by publishing them, and manage published scripts"
name = "Script Designer"
permission_policies {
action_set = ["add", "delete", "edit", "search", "view"]
domain = "scripter"
entity_name = "publishedScript"
}
permission_policies {
action_set = ["add", "delete", "edit", "search", "view"]
domain = "scripter"
entity_name = "script"
}
permission_policies {
entity_name = "ariaWFMApps"
action_set = ["view"]
domain = "integration"
}
default_role_id = "scriptDesigner"
}

How do we fix this error, Please advise.

Thanks,
Lalitha

Hi Lalitha

Thanks for reporting this issue. It seems to be a bug in the provider. We're going to create a ticket and get a dev working on this as soon as we can.

If we find a temporary workaround for you in the meantime, we will let you know here.

-Charlie

Hi Charlie,

Thanks for the update. Do we know when it can be fixed as we are in middle of setting up an Org and this issue is blocking us in moving forward.

Thanks,
Lalitha

Hello,

Could you please check if the Aria - WFM Adapter Premium Application has been purchased and enabled in your Genesys Cloud org?

I think your script is failing because the "integration: ariaWFMApps:view" permission does not exist in your Genesys Cloud org when you run this terraform script.
The "integration: ariaWFMApps:view" permission is only added/made available in a Genesys Cloud org after the corresponding product has been purchased and added to the Genesys Cloud subscription.

So if the Aria - WFM Adapter hasn't been purchased/enabled yet, please try removing the ariaWFMApps permission policy from you terraform script.
Or purchase the WFM Adapter application, and try to run your terraform script again.

Regards,

Hi,

Yup, you are right. We eventually figured it out, ran couple tests this morning and compared manually the permission policies btw default roles for the two given orgs and the below permission is missing in the destination Org.

Thanks,
Lalitha

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.