Skip to content

[User Story] Migrate pagerduty_schedule to pagerduty_schedulev2 #371

Description

@noahwhite

Story Summary

As a platform engineer, I want pagerduty_schedule.ghost-stack_dev migrated to pagerduty_schedulev2, so that our PagerDuty schedule continues to function once the legacy v1 API resource is removed from the provider.


✅ Acceptance Criteria

  • opentofu/modules/pagerduty/main.tofu uses pagerduty_schedulev2 (not pagerduty_schedule) for ghost-stack_dev
  • Existing schedule is migrated in state via tofu state mv or moved {} block — no schedule recreation (would lose history and disrupt on-call)
  • tofu plan on develop shows no changes to the schedule after migration (in-place move only)
  • Deprecation warning is gone from plan output
  • On-call rotation continues uninterrupted after apply (verified in PagerDuty UI)

📝 Additional Context

Current deprecation warning from tofu plan:

│ Warning: Deprecated Resource
│
│   with module.pagerduty.pagerduty_schedule.ghost-stack_dev,
│   on ../../modules/pagerduty/main.tofu line 259, in resource "pagerduty_schedule" "ghost-stack_dev":
│  259: resource "pagerduty_schedule" "ghost-stack_dev" {
│
│ Use pagerduty_schedulev2 instead. pagerduty_schedule uses the legacy v1 API
│ and will be removed in a future release.

📦 Definition of Ready

  • Acceptance criteria defined
  • No unresolved external dependencies
  • Story is estimated
  • Team has necessary skills and access
  • Priority is clear
  • Business value understood

✅ Definition of Done

  • All acceptance criteria met
  • Unit/integration tests written & passing
  • Peer-reviewed
  • Docs updated (if applicable)
  • Verified in staging (if needed)
  • No critical bugs/regressions

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions