Open vide opened 2 years ago
I'm facing the same issue, trying to get two separate schedules aligned. I even stumbled upon the same post you linked, but have had no success following it. It would be helpful if the Terraform output illustrated what the new rotation will look like, as it stands one can only make a change and cross their fingers.
Hello!
It looks like that future changes in
pagerduty_schedule
resources are treated completely different in the web UI of PD respect to how they behave in the Terraform provider, when it comes to modify the users in the rotation.Terraform Version
Affected Resource(s)
pagerduty_schedule
Terraform Configuration Files
Let's start with the above very simple schedule example. My goal is to remove user ID3 from the rotation starting next September 1st (which is 9 days in the future), while keeping them in the daily rotation for the following 9 days.
If I modify a similar schedule via the UI, it's pretty straightforward: I will modify the "Step 3 : Changes should take effect at" and set it to September 1st, remove ID3 from the list of users on the left and voilà, it is done.
Now, we want to be good automators and do this with a code change and its associated PR. So I would modify the line
rotation_virtual_start
to point to2022-09-01T08:00:00+02:00
, remove ID3 from the list of users and runterraform apply
to apply the changes.Then, go to the UI and discover in horror that ID3 had been removed from the whole schedule, and even worse, the schedule from
rotation_virtual_start
(in the future) to today, got completely changed! It even changed the person on duty TODAY! That's because the change in the rotation is applied retroactively from the rotation_virtual_start point back to today.All of this is probably better explained in this DAZN blog post, totally unrelated to me, they just had the same problem and discovered how it really worked.
Thanks!