Anyone know why the Genesys Cloud provider rejects valid agent scripting JSON during terraform apply?
Attempting to deploy a simple script via genesyscloud_script. The JSON payload validates successfully in the Architect UI and against the public schema. However, the CLI throws a 400 Bad Request error referencing a missing id field, despite the resource being created.
Environment details:
- Provider: genesyscloud v1.68.4
- Region: AU-1 (BYOC)
- Terraform: v1.5.7
- Action: POST /api/v2/scripts
The error log shows:
Error: 400 Bad Request: Validation error: id is required
Relevant HCL snippet:
resource "genesyscloud_script" "test_script" {
name = "Test Script v1"
description = "Automated deployment test"
language = "en-US"
script_json = file("./script.json")
}
The script.json contains a basic sections array with blocks. No custom attributes involved. This works fine on the public edge but fails consistently on BYOC. Is there a known issue with the BYOC API endpoint for scripting resources in v1.68.4? Or is the JSON structure expected to differ for BYOC deployments?
Looking for a workaround or confirmation if this is a provider bug.