Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create direct paging for a team #1313

Open
Hronom opened this issue Jan 29, 2024 · 0 comments
Open

Can't create direct paging for a team #1313

Hronom opened this issue Jan 29, 2024 · 0 comments

Comments

@Hronom
Copy link

Hronom commented Jan 29, 2024

Terraform Version

  • Terraform: v1.7.1
  • Terraform Grafana Provider: 2.6.1
  • Grafana: Grafana v10.4.0-65610 (85b9edcd28)

Unable to create direct paging for a team, getting error:

╷
│ Error: POST https://oncall-prod-us-central-0.grafana.net/oncall/api/v1/integrations/: 400 {detail: Direct paging integrations can't be created}
│ 
│   with module.team["xxx"].grafana_oncall_integration.team_direct_paging[0],
│   on modules/team/oncall-integration.tf line 1, in resource "grafana_oncall_integration" "team_direct_paging":
│    1: resource "grafana_oncall_integration" "team_direct_paging" {
│ 
╵

Affected Resource(s)

Please list the resources as a list, for example:

  • grafana_oncall_integration

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

resource "grafana_oncall_integration" "team_direct_paging" {
  provider = grafana.oncall_target

  name = "${var.name} oncall direct paging"
  type = "direct_paging"

  team_id = xxx.id
  default_route {
    slack {
      channel_id = xxx
      enabled    = true
    }
    escalation_chain_id = xxx.id
  }
}

Terraform Configuration Files

terraform {
  required_providers {
    grafana = {
      source  = "grafana/grafana"
      version = "2.6.1"
    }
    http = {
      source  = "hashicorp/http"
      version = "3.4.0"
    }
    null = {
      source  = "hashicorp/null"
      version = "3.2.1"
    }
  }

  backend "s3" {}
}

Expected Behavior

What should have happened?

Possibility to create and manage direct_paging for newly created teams

Actual Behavior

What actually happened?

Seems like during team creation there automatically created team direct paging.
However we need to manage by our-self direct paging and assign proper escalation policies.
Currently this not possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants