Hi John,
It looks like the service was not imported correctly and therefore it doesn’t find an existing match to update and instead, it is creating a new one.
In your example, you referenced enforce_service. So, in your example, there should first be a service resource called enforce_service
in a .tf file within your terraform workspace.
You can then confirm that the service was imported into terraform using terraform show
. You can also navigate to the .tf where the original resource "pagerduty_service" "enforce_service" {}
was defined. It should now populate with all the services data it got from importing.
After you have confirmed that the service is correctly imported, you will need to remove the arguments that are read-only (any arguments not in this list: https://registry.terraform.io/providers/pagerduty/pagerduty/latest/docs/resources/service#argument-reference).
Thanks,
Abbott Brannon