diff --git a/pagerduty_team/README.md b/pagerduty_team/README.md index bc5cceb0..853f4944 100644 --- a/pagerduty_team/README.md +++ b/pagerduty_team/README.md @@ -31,7 +31,7 @@ No modules. | [manager\_members](#input\_manager\_members) | PagerDuty user IDs to add as managers/admins. | `list(string)` | `[]` | no | | [observer\_members](#input\_observer\_members) | PagerDuty user IDs to add as observers. | `list(string)` | `[]` | no | | [responder\_members](#input\_responder\_members) | PagerDuty user IDs to add as responders. | `list(string)` | `[]` | no | -| [schedules](#input\_schedules) | Schedules to create for this team. |
list(object({
name = string
time_zone = optional(string, "UTC")
start = string
rotation_virtual_start = string
rotation_turn_length_seconds = number
users = list(string) # PD user IDs
}))
| `[]` | no | +| [schedules](#input\_schedules) | Schedules to create for this team. |
list(object({
name = string
time_zone = optional(string, "Etc/UTC")
start = string
rotation_virtual_start = string
rotation_turn_length_seconds = number
users = list(string) # PD user IDs
}))
| `[]` | no | | [team\_name](#input\_team\_name) | PagerDuty team name. | `string` | n/a | yes | ## Outputs diff --git a/pagerduty_team/schedules.tf b/pagerduty_team/schedules.tf index 789c3aac..4d8c84a5 100644 --- a/pagerduty_team/schedules.tf +++ b/pagerduty_team/schedules.tf @@ -2,7 +2,7 @@ resource "pagerduty_schedule" "schedule" { for_each = local.schedules_by_name name = each.key - time_zone = try(each.value.time_zone, "UTC") + time_zone = try(each.value.time_zone, "Etc/UTC") teams = [pagerduty_team.team.id] diff --git a/pagerduty_team/variables.tf b/pagerduty_team/variables.tf index 6e3b8906..e2d4fe69 100644 --- a/pagerduty_team/variables.tf +++ b/pagerduty_team/variables.tf @@ -25,7 +25,7 @@ variable "schedules" { description = "Schedules to create for this team." type = list(object({ name = string - time_zone = optional(string, "UTC") + time_zone = optional(string, "Etc/UTC") start = string rotation_virtual_start = string rotation_turn_length_seconds = number