TF Plan publishes flows

We are using CX as Code(terraform) version 1.7.0.
when I do terraform plan it publishes flows.
Terraform plan should not do any changes.

1 Like

Here is an example:
I changed a description in the yaml file and run terraform command
terraform plan
genesyscloud_flow.test: Refreshing state... [id=f12ae472-f35a-4a24-bb00-d6edc86ac78f]

Note: Objects have changed outside of Terraform

Terraform detected the following changes made outside of Terraform since the last "terraform apply":

genesyscloud_flow.test has been changed

~ resource "genesyscloud_flow" "test" {
~ file_content_hash = "0ee85993298f25c774956b4acfbc749cdb2fa758a4d93fc9f64d4501078d3f20" -> "56287d3ae524145e679b0da6ff227bbc1fb2d02eb6179b60ff8370d2369ab9ec"
id = "f12ae472-f35a-4a24-bb00-d6edc86ac78f"
# (1 unchanged attribute hidden)
}

Unless you have made equivalent changes to your configuration, or ignored the relevant attributes using ignore_changes, the following plan may include actions to undo or respond to these changes.

No changes. Your infrastructure matches the configuration.

Your configuration already matches the changes detected above. If you'd like to update the Terraform state to match, create and apply a refresh-only plan:
terraform apply -refresh-only

Even though it says no changes i can clearly see that the flow was published and its version was incremented.

Hi Ihor,

Upgrade to version 1.8.0 of the CX as Code provider. I found the issue and a fix has just been released. Be aware that we had to make the file_content_hash code required. Here is a link to the post with a little more detail on the planned issue.

I appreciate your patience. This bug took us a while to track down.

Thanks,
John Carnell
Manager, Developer Engagement

Thank you John.
The issue is resolved by upgrading to 1.8.0 version.

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