How come this setting causes immediate 500 failure during Terraform apply?
Env: AU-1 BYOC
Provider: genesyscloud 2.5.1
TF: 1.6.0
Resource: genesyscloud_edge_device_registration
Deployment pipeline breaks on edge device registration step. Plan phase completes without drift. Apply fails with internal server error.
HCL snippet:
hcl
resource "genesyscloud_edge_device_registration" "main" {
device_name = "edge-node-prod-01"
device_type = "VMS"
vms_ip_address = "10.20.30.40"
vms_port = 5060
vms_protocol = "SIP"
location_id = var.location_id
settings = {
"register_on_demand" = "true"
"keep_alive_interval" = "30"
}
}
Error output:
│ Error: POST /api/v2/edge/devices: 500 Internal Server Error
│
│ with genesyscloud_edge_device_registration.main,
│ on edge.tf line 1, in resource "genesyscloud_edge_device_registration" "main":
│ 1: resource "genesyscloud_edge_device_registration" "main" {
Curl request to same endpoint with identical payload returns 201 OK. Auth token is valid. Headers include X-Request-Id.
Provider debug logs show request body matches curl payload exactly. Issue seems isolated to provider wrapper or specific header handling in 2.5.1.
Rolling back to 2.4.9 does not resolve. Same error persists.
Is this known issue with BYOC edge registration in latest provider? Need workaround to proceed with deployment. Cannot manually register devices in prod environment due to compliance policy. Requires IaC only approach.
Any insights appreciated.