0
0
llucycodes42
This resource block defines a schedule named "myResourceName" with the following settings:
- Name: "myResourceName"
- Description: A description of the schedule
- Time zone: America/New_York
- Layer: "Night Shift"
- Start time: 2015-11-06T20:00:00-05:00
- Rotation virtual start: 2015-11-06T20:00:00-05:00
- Rotation turn length seconds: 86400
- Users: ["${pagerduty_user.foo.
Shortcut: tf_pagerduty_schedule
resource "pagerduty_schedule" "${myResourceName}" {
name = "my-${myResourceName}"
description = "my-description-${myResourceName}"
time_zone = "America/New_York"
layer {
name = "Night Shift"
start = "2015-11-06T20:00:00-05:00"
rotation_virtual_start = "2015-11-06T20:00:00-05:00"
rotation_turn_length_seconds = 86400
users = ["\${pagerduty_user.foo.id}"]
restriction {
type = "daily_restriction"
start_time_of_day = "08:00:00"
duration_seconds = 32400
}
}
}