You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the timeout for alert_grouping_parameters for a service is updated outside of Terraform, a subsequent Terraform apply may not be able to reconcile the difference and update PagerDuty with the intended value.
Terraform plan shows that the timeout would be updated from 59 (currently in PagerDuty) back to 60 (in the Terraform code) and apply changes the value back to 60:
Terraform will perform the following actions:
# pagerduty_service.service will be updated in-place~ resource "pagerduty_service""service" {
id = "..."
name = "test"# (12 unchanged attributes hidden)~ alert_grouping_parameters {
# (1 unchanged attribute hidden)~ config {
~ timeout = 59 -> 60
# (3 unchanged attributes hidden)
}
}
# (1 unchanged block hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
pagerduty_service.service: Modifying... [id=...]
pagerduty_service.service: Modifications complete after 1s [id=...]
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
Actual Behavior
Apply output shows the following:
pagerduty_service.service: Refreshing state... [id=...]
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed.
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
A follow-up GET request to the PagerDuty API for the service shows that the timeout value remains 59 (set previously via the curl command) and not 60 (set in the Terraform code):
If the
timeout
foralert_grouping_parameters
for a service is updated outside of Terraform, a subsequent Terraform apply may not be able to reconcile the difference and update PagerDuty with the intended value.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Terraform plan shows that the
timeout
would be updated from59
(currently in PagerDuty) back to60
(in the Terraform code) and apply changes the value back to60
:Actual Behavior
Apply output shows the following:
A follow-up
GET
request to the PagerDuty API for the service shows that thetimeout
value remains59
(set previously via thecurl
command) and not60
(set in the Terraform code):Steps to Reproduce
terraform apply
test.json
:timeout
for thealert_grouping_parameters
to59
:timeout
was updated to59
:terraform apply
Important Factoids
References
3.14.1
, the "expected behavior" above occurred instead of the "actual behavior".The text was updated successfully, but these errors were encountered: