Hello Everyone,
I have questions on CX as a code.
In Source
resource "genesyscloud_tf_export" "export_flow" {
directory = "./source"
export_as_hcl = true
log_permission_errors = true
include_state_file = false
enable_dependency_resolution = true
split_files_by_resource = false
include_filter_resources = ["genesyscloud_flow::FlowName"]
}
In the source region, I am exporting all the dependencies of the call flow. After the export, I copy all the generated resource files from the source folder to the target folder.
In Target
resource "genesyscloud_tf_export" "export_flow" {
directory = "./target"
export_as_hcl = true
log_permission_errors = true
include_state_file = true
enable_dependency_resolution = true
split_files_by_resource = false
include_filter_resources = ["genesyscloud_flow::FlowName"]
}
In the target region, I am exporting all the dependencies of the call flow along with the state file to track the existing dependencies in the target environment.
My call flow has several dependencies in both the source and target environments, including:
Data Actions
Datatables
User Prompts
Flow Outcomes
In-Queue Flows
How can I handle Data Actions?
In the source region, the Data Action has a different URL and Integration ID compared to the target region.
When I run terraform apply, it overrides the Data Action URL in the target region with the one from the source region, which is incorrect.
How can I ensure that the Data Action URLs and Integration IDs remain specific to their respective environments without being overwritten?