terraform-provider-pagerduty
terraform-provider-pagerduty copied to clipboard
pagerduty_service_dependency between two services fails
Terraform Version
Terraform v1.0.0
on darwin_amd64
+ provider registry.terraform.io/datadog/datadog v3.1.2
+ provider registry.terraform.io/gitlabhq/gitlab v3.6.0
+ provider registry.terraform.io/hashicorp/aws v3.47.0
+ provider registry.terraform.io/hashicorp/cloudinit v2.2.0
+ provider registry.terraform.io/hashicorp/helm v2.2.0
+ provider registry.terraform.io/hashicorp/kubernetes v2.3.2
+ provider registry.terraform.io/hashicorp/local v2.1.0
+ provider registry.terraform.io/hashicorp/null v3.1.0
+ provider registry.terraform.io/hashicorp/vault v2.21.0
+ provider registry.terraform.io/pagerduty/pagerduty v1.9.9
+ provider registry.terraform.io/terraform-aws-modules/http v2.4.1
Your version of Terraform is out of date! The latest version
is 1.0.1. You can update by downloading from https://www.terraform.io/downloads.html
Affected Resource(s)
Please list the resources as a list, for example:
- pagerduty_service_dependency
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
data "pagerduty_escalation_policy" "default" {
name = "Default"
}
resource "pagerduty_service" "foo" {
name = "Foo"
escalation_policy = data.pagerduty_escalation_policy.default.id
}
resource "pagerduty_service" "bar" {
name = "Bar"
escalation_policy = data.pagerduty_escalation_policy.default.id
}
resource "pagerduty_service_dependency" "foo_bar" {
dependency {
dependent_service {
id = pagerduty_service.foo.id
type = "service"
}
supporting_service {
id = pagerduty_service.bar.id
type = "service"
}
}
Expected Behavior
Creates service dependency
Actual Behavior
╷
│ Error: POST API call to https://api.pagerduty.com/service_dependencies/associate failed 404 Not Found. Code: 2100, Errors: [Business/Technical Service not found or lack permissions against], Message: Not Found
│
│ with pagerduty_service_dependency.foo_Bar,
│ on pagerduty.tf line 7, in resource "pagerduty_service_dependency" "foo_bar":
│ 7: resource "pagerduty_service_dependency" "foo_bar" {
│
╵
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
-
terraform apply
We're getting the same with Terraform 0.13.7 and PagerDuty provider 1.9.7
We are also getting the same error, Terraform version 1.0.4 and PagerDuty provider 1.10.0
I think this was fixed by https://github.com/PagerDuty/terraform-provider-pagerduty/pull/372 already, but new release of the provider is required
@PavelPikat I don't think so since this one is about pagerduty_service
+ pagerduty_service
not pagerduty_business_service