Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hazelops/terraform-pagerduty-schedule


https://github.com/hazelops/terraform-pagerduty-schedule

Last synced: 19 days ago
JSON representation

Awesome Lists containing this project

README

        

# Terraform Pagerduty Schedule

Terraform module that creates schedule in Pagerduty

## Description

This module provides settings:

- Create schedule in Pagerduty

## Usage

### Miminal setup

```hcl
provider "pagerduty" {
token = "Pagerduty_Token"
}
module "pagerduty_schedule" {
source = "[email protected]:hazelops/terraform-pagerduty-schedule.git"
layer_name = ""
layer_users = [module.pagerduty_user.id, module.pagerduty_hpahom.id, module.pagerduty_hpahom2.id]
name = ""
}
```

### Full setup

```hcl
provider "pagerduty" {
token = "Pagerduty_Token"
}
module "pagerduty_schedule" {
source = "[email protected]:hazelops/terraform-pagerduty-schedule.git"
enabled = enabled
layer_name = ""
layer_users = [module.pagerduty_user.id, module.pagerduty_hpahom.id, module.pagerduty_hpahom2.id]
name = ""
oncall_start = "2018-01-29T12:00:00-08:00"
rotation_length_in_seconds = 604800
rotation_virtual_start = "2018-01-29T12:00:00-08:00"
time_zone = "America/Los_Angeles"
}
```

## Requirements

No requirements.

## Providers

| Name | Version |
|------|---------|
| pagerduty | n/a |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| enabled | Gives ability to enable or disable a module | `bool` | `true` | no |
| layer\_name | The name of the schedule layer (e.g. Night Shift) | `any` | n/a | yes |
| layer\_users | The ordered list of users on this layer. The position of the user on the list determines their order in the layer. | `list` | n/a | yes |
| name | Name of schedule. Make it meaningful | `any` | n/a | yes |
| oncall\_start | The start time of the schedule layer. This value will not be read back from the PagerDuty API because the API will always return a new start time, which represents the last updated time of the schedule layer. | `string` | `"2018-01-29T12:00:00-08:00"` | no |
| rotation\_length\_in\_seconds | The duration of each on-call shift in seconds. | `number` | `604800` | no |
| rotation\_virtual\_start | The effective start time of the schedule layer. This can be before the start time of the schedule. | `string` | `"2018-01-29T12:00:00-08:00"` | no |
| time\_zone | n/a | `string` | `"America/Los_Angeles"` | no |

## Outputs

| Name | Description |
|------|-------------|
| id | n/a |

### Terraform Module Registry

![Hazelops logo](https://avatars0.githubusercontent.com/u/63737915?s=25&v=4) [Terraform Pagerduty Schedule
](https://registry.terraform.io/modules/address_of_module)