Looking for advice on WebRTC softphone configuration drift.
We are automating the softphone setup for a new tenant using Terraform. The genesyscloud_softphone resource applies successfully, but the subsequent validation via the GC CLI fails. The endpoint returns a 401 Unauthorized when attempting to register the device token.
The environment is Genesys Cloud EU Central. Terraform provider version 2.15.0. The flow uses a custom Architect flow for softphone authentication, but the error suggests the underlying API token is invalid or expired before the resource is fully active.
Here is the error from the CLI validation script:
Error: Failed to register WebRTC device
Status: 401 Unauthorized
Message: Invalid or expired access token. Please re-authenticate.
Endpoint: /api/v2/telephony/voip/registrations
The IAM role has full admin permissions. The secret management integration is working for other resources. Is there a known delay in token propagation for softphone resources in the EU region? Or is the Terraform state not syncing correctly with the live API token cache?
Any insights on debugging the token lifecycle during the apply phase would be appreciated.