-
Notifications
You must be signed in to change notification settings - Fork 221
Description
PagerDuty v3.23.1
When you get the state of a schedule that is related to multiple teams, I believe the team IDs are ordered. This causes issues when comparing expected state to current state.
Our TF Code:
resource "pagerduty_schedule" "pd_sched_gmic_helios_schedule1" {
.....
teams = [pagerduty_team.team1.id, pagerduty_team.team2.id]
}
Every plan/apply we get this:
# pagerduty_schedule.pd_schedudule will be updated in-place
~ resource "pagerduty_schedule" "pd_schedudule" {
id = "P2W357J"
name = "ScheduleName"
~ teams = [
- "P8KOKBP",
"PUCXHGT",
+ "P8KOKBP",
]
# (3 unchanged attributes hidden)
# (1 unchanged block hidden)
}
AWS Provider had a similar issue here:
https://stackoverflow.com/questions/68870558/make-terraform-ignore-the-order-of-list-items-returned-from-the-service