Terraform plan hangs on BYOC Edge cluster registration

What is the standard approach to handle state locking when registering a new BYOC Edge cluster via genesyscloud_edge_cluster? Terraform v1.7.5 with provider v1.32.0. The plan phase completes, but apply hangs indefinitely on the registration step. The API logs show a 202 Accepted, but the resource never transitions to created. No error message in the CLI output. Just spinning. The cluster is running on AWS, us-east-1, Kubernetes 1.28. The edge-connectivity status shows ‘Pending’ in the portal. I have verified the webhook URL and authentication tokens. They are valid. The issue seems to be related to how the provider polls for the final status. Is there a timeout parameter I am missing? Or is this a known limitation with the current provider version? The deployment pipeline is blocked. Any insights on forcing the state update or debugging the polling mechanism would be appreciated. Here is the resource config: resource genesyscloud_edge_cluster my_edge { name = ‘prod-edge-01’ description = ‘Primary BYOC Edge’ cluster_id = ‘aws-eks-prod’ … }

The problem here is the asynchronous nature of BYOC Edge registration, where the Terraform provider waits for a status update that the Genesys Cloud backend has not yet propagated to the resource state, causing a deadlock in the apply phase.

When registering a BYOC Edge cluster, especially in regions with higher latency like us-east-1 from an APAC perspective, the initial 202 Accepted response indicates that the request has been queued for validation against the carrier’s SIP infrastructure. The provider often defaults to a polling interval that is too aggressive for the backend’s reconciliation time, leading to a hang rather than a timeout. To resolve this, you need to explicitly configure the timeout and retry logic within the resource block to accommodate the longer handshake duration required for SIP trunk verification. Additionally, ensure that your genesyscloud_edge_cluster resource includes the depends_on attribute if it relies on prior network configuration resources, preventing race conditions.

resource "genesyscloud_edge_cluster" "byoc_edge" {
 name = "US-East-1-BYOC-Edge"
 description = "Primary BYOC Edge for US East"
 
 # Explicitly set timeouts to allow for backend reconciliation
 timeouts {
 create = "15m"
 update = "10m"
 delete = "5m"
 }

 # Ensure proper sequencing if dependent on network rules
 depends_on = [
 aws_security_group.edge_sg
 ]
}

Adjusting the create timeout to 15 minutes usually gives the backend sufficient time to validate the SIP credentials and update the edge-connectivity status from ‘Pending’ to ‘Active’, allowing the provider to proceed.