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
Can provide if necessary, but reproduction of the issue is trivial.
Expected Behavior
When importing an existing PagerDuty service that is configured with alert_grouping_parameters and/or auto_pause_notifications_parameters values, these configured values should be imported in to the Terraform state.
Actual Behavior
The import completes successfully, but there is no state data relating to either alert_grouping_parameters or auto_pause_notifications_parameters configurations.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
Ensure an existing service is configured in PagerDuty with Alert-grouping and Auto-pause enabled. (Can use the Terraform code above to deploy this and then just use terraform state rm <resource address> to remove it from the state.
Get the service ID from the services Web URL or from the API:
GET https://api.pagerduty.com/services HTTP/1.1Content-Type: application/jsonAuthorization: Token token="<token>"
You can also verify the service configuration to import using:
GET https://api.pagerduty.com/services/<serviceID>?include[]=auto_pause_notifications_parameters HTTP/1.1Content-Type: application/jsonAuthorization: Token token="<token>"
Run terraform import 'pagerduty_service.bugdemo' "<service ID>"
Run terraform state show 'pagerduty_service.bugdemo' and confirm the missing configuration blocks.
Run terraform plan -out="terraform.tfplan" to see the additional grouping/pause configurations Terraform expects to apply.
Run terraform apply "terraform.tfplan" to reapply the configuration and correct the issue with state.
Re-run terraform state show 'pagerduty_service.bugdemo' and confirm the expected configuration blocks are all present.
The text was updated successfully, but these errors were encountered:
@modwyer42 A patch for solving is now available on version v2.12.1 of PagerDuty Terraform Provider. Therefore, I encourage you to do the upgrade and if you still face the issue, pleas don't hesitate on re-opening this issue ✌🏽 😎
Terraform Version
Terraform v1.3.7
Affected Resource(s)
Terraform Configuration Files
Providing a cut down equivalent of the actual module, so it just has the resources required to reproduce.
Debug Output
Can provide if necessary, but reproduction of the issue is trivial.
Expected Behavior
When importing an existing PagerDuty service that is configured with
alert_grouping_parameters
and/orauto_pause_notifications_parameters
values, these configured values should be imported in to the Terraform state.Actual Behavior
The import completes successfully, but there is no state data relating to either
alert_grouping_parameters
orauto_pause_notifications_parameters
configurations.Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
Ensure an existing service is configured in PagerDuty with Alert-grouping and Auto-pause enabled. (Can use the Terraform code above to deploy this and then just use
terraform state rm <resource address>
to remove it from the state.Get the service ID from the services Web URL or from the API:
You can also verify the service configuration to import using:
Run
terraform import 'pagerduty_service.bugdemo' "<service ID>"
Run
terraform state show 'pagerduty_service.bugdemo'
and confirm the missing configuration blocks.Run
terraform plan -out="terraform.tfplan"
to see the additional grouping/pause configurations Terraform expects to apply.Run
terraform apply "terraform.tfplan"
to reapply the configuration and correct the issue with state.Re-run
terraform state show 'pagerduty_service.bugdemo'
and confirm the expected configuration blocks are all present.The text was updated successfully, but these errors were encountered: