Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  genesyscloud_integration - Issue in plan output

    Posted 10-06-2025 17:44
    Edited by Rohit Sharma 10-06-2025 17:47

    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
    ------------------------------



  • 2.  RE: genesyscloud_integration - Issue in plan output

    Posted 10-07-2025 03:01

    Hello Rohit,

    if I understood you correctly, the object was created with Terraform and then modified via the cloud?
    This leads to Terraform recreating the objects during the next run.


    Regards,
    Thomas



    ------------------------------
    Thomas Kamm
    ------------------------------