Agent Scripting HCL fails to bind custom attributes

Having some issues getting my configuration to work…

Terraform genesyscloud_routing_script resource rejects custom_attribute blocks. Deployment fails with validation error.

Environment:

  • GC CLI v2.4.0
  • Terraform Provider v1.12.5
  • Region: APAC (Sydney)

The JSON export shows the attributes, but HCL schema seems outdated. API endpoint /api/v2/architect/flows/scripts accepts the payload manually. Is this a provider bug?

The Terraform provider schema for genesyscloud_routing_script does not yet support inline custom_attribute blocks. The APAC region enforces strict schema validation, causing the HCL parser to reject the undefined block type.

Use the json attribute to pass the complete script definition as a single string instead. This bypasses the provider’s structural limitations while satisfying the API’s strict type requirements.