Stumbled on a weird bug today with the webRTC softphone configuration during automated env promotion. using provider version 1.42.0 and terraform 1.5.7. the pipeline runs fine for queues and users but fails on the webRTC resource.
getting this error:
genesyscloud_webrtc_softphone_config.main: Creating…
Error: Error creating WebRTC Softphone Config: 409 Conflict
Details: A resource with this ID already exists.
strange thing is the resource is not in the state file. i ran tf import and it succeeds. but next apply fails again with same 409. checked the API directly via curl:
GET /api/v2/icd/webRtc/softphone/config
returns 200 OK with valid JSON.
the issue seems to be that terraform thinks it needs to create it because its not in state, but the API says its there. tried adding lifecycle { ignore_changes = […] } but that just masks the drift.
environment is AP Southeast. is this a known bug with the provider or am i missing something in the HCL?
resource “genesyscloud_webrtc_softphone_config” “main” {
enabled = true
other config omitted
}
any pointers appreciated. stuck on this for 2 days now.