Genesys Cloud - Developer Community!

 View Only

Sign Up

Export an Architect flow using genesys_tf_export block.

  • 1.  Export an Architect flow using genesys_tf_export block.

    Posted 06-16-2025 23:42

    Hi Team,

    I am trying to export an architect flow using below resource block in my main.tf, after export, when I see the contents of genesyscloud.tf.json is something as below.

    resource "genesyscloud_tf_export" "export_flow" {
      directory                          = "./genesyscloud/flows"
      log_permission_errors    = true
      include_state_file            = true
      include_filter_resources  = ["genesyscloud_flow::Example_flow"]
    }

    cat ./genesyscloud/flows/genesyscloud.tf.json

    "genesyscloud_flow": {
    39 "INBOUNDCALL_Example_Flow": {
    40 "file_content_hash": "${filesha256(var.genesyscloud_flow_INBOUNDCALL_Example_Flow_filepath)}",
    41 "filepath": "${var.genesyscloud_flow_INBOUNDCALL_Example_Flow_filepath}",
    42 "force_unlock": null,
    43 "substitutions": null
    44 }

    My aim is to export an architect flow using CX as a Code in JSON format. Is it possible? What are the ways I can export the flow in JSON format. Could someone please help?

    #CXasCode

    ------------------------------
    Komali Sidagam
    ------------------------------