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
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}",
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
------------------------------