Need some troubleshooting help with a persistent 403 Forbidden error when provisioning SIP trunks via Terraform. The deployment pipeline (GitHub Actions) succeeds for most resources, but fails specifically on genesyscloud_sip_trunk.
Environment:
- Terraform: v1.8.2
- Genesys Cloud Provider: v1.42.5
- Region: ap-southeast-2
The HCL configuration looks standard, but the API returns a 403 despite the service account having admin:sip_trunk permissions. The error log points to a validation failure on the trunk name or external ID, but no specific message is returned in the JSON response.
resource "genesyscloud_sip_trunk" "main_trunk" {
name = "Prod-SIP-Trunk-01"
description = "Primary SIP trunk for production"
trunk_id = "my-custom-trunk-id-123"
sip_trunk_settings {
trunk_host = "sip.provider.com"
trunk_port = 5060
trunk_proto = "tcp"
authentication_type = "none"
}
}
Checking the Genesys Cloud admin console, the resource does not exist. The API endpoint /api/v2/telephony/sip/trunks is returning the 403. Is there a specific entitlement missing for automated SIP trunk creation in this region, or is the trunk_id format invalid?