Skip to content

Failure to replace a schedule on an escalation policy #1081

@cwinters8

Description

@cwinters8

Error when attempting to replace a pagerduty_schedule on a pagerduty_escalation_policy:

Error: It is not possible to continue with the destruction of the Schedule "PR2O2HC", because it is being used by Escalation Policy "P55WWON" which has only one layer configured. Nevertheless, the mentioned Escalation Policy is not managed by this Terraform configuration. So in order to unblock this resource destruction, We suggest you to first make the appropiate changes on the Escalation Policy https://carfax.pagerduty.com/escalation_policies/P55WWON and come back for retrying.

Of note, the mentioned P55WWON escalation policy is indeed managed by this config.

I tried adding the create_before_destroy = true lifecycle policy to the schedule resource, but this did not prevent the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions