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

pagerduty_alert_grouping_setting - Incorrect documentation regarding timeout #960

Open
sgujavarthy opened this issue Dec 26, 2024 · 0 comments

Comments

@sgujavarthy
Copy link

sgujavarthy commented Dec 26, 2024

The documentation of pagerduty_alert_grouping_setting regarding the timeout is incorrect. Apparently, the PagerDuty APIs expects the value in seconds, while the documentation says it is in minutes.

PagerDuty Terraform Provider Documentation: says Duration is in minutes

image

Response from PagerDuty Terraform Apply: says Duration is expected in seconds

image

Terraform Version

v3.18.1

Affected Resource(s)

  • pagerduty_alert_grouping_setting

Terraform Configuration Files

resource "pagerduty_alert_grouping_setting" "alert_grouping_time_based_2min" {
    name = "Time-Based Alert Grouping for 2 minutes"
    description = "Managed by Terraform"
    type = "time"
    config {
      timeout = 2
    }
    services = [
        pagerduty_service.foo.id
    ]
}

Actual Behavior

400 Response from terraform apply:
timeout: must be an integer between 60 and 86400 seconds.

Error: Error creating PagerDuty alert grouping setting Time-Based Alert Grouping for 2 minutes

with pagerduty_alert_grouping_setting.alert_grouping_time_based_2min,
on services.tf line 6, in resource "pagerduty_alert_grouping_setting" "alert_grouping_time_based_2min":
6: resource "pagerduty_alert_grouping_setting" "alert_grouping_time_based_2min" {

HTTP response failed with status code 400, message: Invalid Input Provided
(code: 0): timeout: must be an integer between 60 and 86400 seconds.

References

#935 (comment)

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

1 participant