No idea why this is happening, the genesyscloud_script resource returns a 400 Bad Request during terraform apply. The error message indicates a schema validation failure specifically related to the sections block structure.
Environment:
- Terraform: v1.7.4
- Genesys Cloud Provider: v1.92.0
- Region: US East
- Use Case: Automated deployment of agent assist scripts via CI/CD.
The YAML definition seems valid according to the provider documentation, but the API rejects it.
resource "genesyscloud_script" "agent_assist" {
name = "Agent Assist - Order Lookup"
description = "Standardized script for order inquiries"
type = "AGENT_ASSIST"
sections {
name = "Greeting"
type = "TEXT"
text = "Hello, thank you for calling. How can I help you today?"
}
}
Error snippet:
Error: Error creating Script: 400 Bad Request
Response body: {"errors":[{"message":"Validation failed for object 'sections'"}]}
Is there a hidden requirement for the sections block in the HCL definition? The UI accepts this structure without issue. Need to resolve this to unblock the pipeline.