grafana / terraform-provider-grafana

Terraform Grafana provider
https://www.terraform.io/docs/providers/grafana/
Mozilla Public License 2.0
435 stars 229 forks source link

[Feature] Create Grafana On Call Schedules without a pre-existing iCal address #1202

Closed alekhrycaiko closed 10 months ago

alekhrycaiko commented 11 months ago

Hi there!

I'd like to be able to provision Grafana on call schedules and configure them without having to spin up an iCal address before hand. It appears in the UI that it's possible to create a Grafana on call schedule without any pre-existing calendar links. Is something like this possible to add to the Terraform provider?

julienduchesne commented 10 months ago

👋 ICal is not a required attribute: https://registry.terraform.io/providers/grafana/grafana/latest/docs/resources/oncall_schedule

This should work:

// Shift based schedule
resource "grafana_oncall_schedule" "example_schedule" {
  name      = "Example Calendar Schadule"
  type      = "calendar"
  time_zone = "America/New_York"
  shifts = [
  ]
}
alekhrycaiko commented 10 months ago

Got it, thanks! Looks like I missed that detail. Appreciated 🙏