Looking for advice on handling a persistent 409 Conflict error during Terraform apply.
Environment:
- Terraform 1.6.5
- Genesys Cloud Provider 1.28.0
- Region: AP Southeast
The pipeline fails at genesyscloud_wfm_schedule_group. The resource exists in the org, but Terraform insists on creating it again, resulting in a conflict on the name attribute.
resource "genesyscloud_wfm_schedule_group" "qa_group" {
name = "QA_Team_Schedule"
description = "Automated QA Scheduling"
schedule {
name = "Standard_Hours"
start_time = "09:00:00"
end_time = "17:00:00"
}
}
Drift detection shows no difference. The API returns a 409 with message Resource already exists. Manual import via terraform import succeeds, but subsequent applies fail with the same 409.
Is this a known issue with the provider’s conflict resolution logic for WFM resources? Or is there a specific API flag required to force an update instead of a create?
Logs show the POST request hitting /api/v2/wfm/schedulegroups without the expected If-None-Match header handling. Need a workaround to stabilize the CI/CD pipeline.