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

Permanent diff in pagerduty_service #933

Open
VenelinMartinov opened this issue Oct 1, 2024 · 1 comment
Open

Permanent diff in pagerduty_service #933

VenelinMartinov opened this issue Oct 1, 2024 · 1 comment

Comments

@VenelinMartinov
Copy link

VenelinMartinov commented Oct 1, 2024

Terraform Version

Terraform v1.9.6

Affected Resource(s)

  • pagerduty_service

Terraform Configuration Files

terraform {
  required_providers {
    pagerduty = {
      source  = "pagerduty/pagerduty"
      version = ">= 2.2.1"
    }
  }
}

resource "pagerduty_user" "test_user" {
    name  = "Earline Greenholt"
    email = "<EMAIL>"
}

resource "pagerduty_escalation_policy" "escalate_via_email" {
    name     = "Engineering Escalation Policy"
    num_loops = 2

    rule {
        escalation_delay_in_minutes = 10

        target {
            type = "user_reference"
            id   = pagerduty_user.test_user.id
        }
    }
}

resource "pagerduty_service" "dummy_service" {
    name        = "MyDummy"
    description = "PagerDuty service for My Dummy service"
    
    escalation_policy = pagerduty_escalation_policy.escalate_via_email.id

    auto_pause_notifications_parameters {
        enabled = true
        timeout = 300
    }

    auto_resolve_timeout = null

    incident_urgency_rule {
        type = "constant"

        during_support_hours {
            type    = "constant"
            urgency = "low"
        }

        outside_support_hours {
            type    = "constant"
            urgency = "low"
        }

        urgency = "low"
    }
}

Expected Behavior

Terraform plan with no changes in the code should produce no diff

Actual Behavior

There is a perpetual diff:

Terraform will perform the following actions:

  # pagerduty_service.dummy_service will be updated in-place
  ~ resource "pagerduty_service" "dummy_service" {
        id                      = "PZETJBI"
        name                    = "MyDummy"
        # (11 unchanged attributes hidden)

      ~ incident_urgency_rule {
            # (2 unchanged attributes hidden)

          + during_support_hours {
              + type    = "constant"
              + urgency = "low"
            }

          + outside_support_hours {
              + type    = "constant"
              + urgency = "low"
            }
        }

        # (1 unchanged block hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Steps to Reproduce

  1. terraform apply
  2. terraform plan
@ringods
Copy link

ringods commented Dec 18, 2024

Any idea when this could be looked at?

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

2 participants