pagerduty_schedule

    0

    0

    lucycodes42

    Terraform snippets

    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
           }
       }
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.