My configuration keeps failing…
Attempting to provision a new BYOC Edge instance via genesyscloud_edge_connector. The environment is set to au-2. Using provider version 1.56.0. The deployment pipeline runs via GitHub Actions on ubuntu-latest. The Terraform apply fails consistently at the genesyscloud_edge_connector resource creation step. The error log indicates an HTTP 502 Bad Gateway returned from the Genesys Cloud API endpoint /api/v2/edge/connectors.
The payload sent includes standard configuration: name, description, region set to ap-southeast-2, and capacity set to 10. No custom certificates or advanced routing rules are attached at this stage. The issue persists across multiple runs. Rolling back to provider 1.55.0 did not resolve the connectivity issue. Direct API calls using Postman with the same OAuth token succeed, suggesting the issue is specific to the Terraform provider’s request handling or timing. The error message is generic: Error creating edge connector: 502 Bad Gateway. No detailed JSON error body is returned, making debugging difficult. The environment variables for GENESYCLOUD_CLIENT_ID and GENESYCLOUD_CLIENT_SECRET are verified correct. Network connectivity to api.au-2.genesys.cloud is open. Firewall logs show no blocked requests. Suspect a transient issue with the Edge provisioning service in au-2 or a bug in the provider’s retry logic for this specific resource type. Need to know if others face this 502 error with BYOC resources in the Sydney region. Is there a known workaround or a specific header required in the Terraform provider configuration that is currently missing? The standard documentation does not list any additional requirements for basic connector creation.