Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pagerduty_event_orchestration_global "update in place" when no change present #915

Open
jd-ohea opened this issue Jul 24, 2024 · 0 comments

Comments

@jd-ohea
Copy link

jd-ohea commented Jul 24, 2024

Terraform Version

v1.8.5

Terraform Configuration Files

resource "pagerduty_event_orchestration_global" "sample_pagerduty_resource_name" {
  for_each            = { for service in local.technical_services : service.name => service }
  event_orchestration = pagerduty_event_orchestration.sample_pagerduty_event_orchestration.id
  set {
    id = "start"

    rule {
      label    = "Sample label"
       ...
     }
     ...
   }
   ...
}
      

Expected Behavior

No change present in the global orchestration

Actual Behavior

There was a change detected in the configuration when in fact there was no change present.

  # module.global_orchestration.pagerduty_event_orchestration_global.sample_pagerduty_resource_name["sample-service"] will be updated in-place
  ~ resource "pagerduty_event_orchestration_global" "sample_pagerduty_resource_name" {
        id                  = "sample-id"
        # (1 unchanged attribute hidden)

      ~ set {
            id = "sample-id-2"

          ~ rule {
                id       = "sample-id-3"
              - label    = "Sample label" -> null
                # (1 unchanged attribute hidden)

                # (1 unchanged block hidden)
            }

            # (22 unchanged blocks hidden)
        }

        # (3 unchanged blocks hidden)
    }

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply a pagerduty_event_orchestration_global with a label. (setup the global orchestration like above with a for loop)
  2. terraform apply again and the labels in the resources will be expected to be removed even though there was no change to the code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant