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

Service dependency creation works but Terraform reports failure #226

Closed
matt-canty-dragon opened this issue May 12, 2020 · 3 comments
Closed

Comments

@matt-canty-dragon
Copy link

matt-canty-dragon commented May 12, 2020

Terraform Version

Terraform v0.12.24
+ provider.pagerduty v1.7.1

Affected Resource(s)

  • pagerduty_service_dependency

Terraform Configuration Files

resource pagerduty_service_dependency service_dependency {
  dependency {
    dependent_service {
      id   = "PXXXXXA"
      type = "service"
    }
    supporting_service {
      id   = "PXXXXXB"
      type = "service"
    }
  }
}

Debug Output

pagerduty_service_dependency.service_dependency: Creating...
pagerduty_service_dependency.service_dependency: Still creating... [10s elapsed]
pagerduty_service_dependency.service_dependency: Still creating... [20s elapsed]
pagerduty_service_dependency.service_dependency: Still creating... [30s elapsed]

Error: GET API call to https://api.pagerduty.com/service_dependencies/business_services/PXXXXXA failed 404 Not Found. Code: 404, Errors: [], Message: Service Not Found

  on main.tf line 14, in resource "pagerduty_service_dependency" "service_dependency":
  14: resource pagerduty_service_dependency service_dependency {

Expected Behavior

Terraform apply should pass

Actual Behavior

The dependency is actually created in PagerDuty but the apply fails regardless.

image

It looks like in the URL it is trying to get business service dependency, but this is a technical service.

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply
@stmcallister
Copy link
Contributor

Ah, right. As it stands, the Provider assumes that service_dependencies are business_service objects supported by service objects. The functionality for service to service is still in Beta in the PagerDuty web UI. So, the plan was to make the feature available in the provider when it came out of Beta. I'll check with the Services team to see if there's a timetable there.

@matt-canty-dragon
Copy link
Author

Ok sure thing. Thanks.

@stmcallister
Copy link
Contributor

Going to close this, as creating the feature is on our radar. Please open a new issue if you have any further issues.

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

No branches or pull requests

2 participants