We are facing the issue in updating integrations through terraform:
Adding new Group
If new group is added to the configuration and property is updated in the Genesys cloud, it shows entire configuration will be removed
- Ideally it should show only newly added groups in the "(known after apply)" section and rest the configuration should remain as is.
# module.integration.genesyscloud_integration.call-test will be updated in-place
~ resource "genesyscloud_integration" "call-test" {
id = "--id--"
# (2 unchanged attributes hidden)
~ config {
name = "call test"
~ properties = jsonencode(
{
- displayType = "widget"
- groups = [
- "--id1--",
- "--id2--",
- "--id3--",
]
- sandbox = "allow-scripts,allow-same-origin,allow-forms,allow-modals"
- url = "--url--"
}
) -> (known after apply)
# (3 unchanged attributes hidden)
}
}
Change/Removal
Example when group is removed or updated it shows only that particular ID with -/+ symbol
# module.integration.genesyscloud_integration.pilot will be updated in-place
~ resource "genesyscloud_integration" "pilot" {
id = "--id--"
# (2 unchanged attributes hidden)
~ config {
name = "pilot"
~ properties = jsonencode(
~ {
~ groups = [
# (25 unchanged elements hidden)
"--id1--",
- "----- new ID -----", ---> updated/removed group
"--id2--",
# (3 unchanged elements hidden)
]
# (3 unchanged attributes hidden)
}
)
# (3 unchanged attributes hidden)
}
}
Can you explain the behavior and changes in the plan output?
Regards,
Rohit S
#CXasCode
#Integrations
------------------------------
Rohit Sharma
------------------------------