Hi Team. I have 2 questions:
Question 1:
I'd like to know in more detail how I can migrate each and every object created from Genesys Cloud to another organization. And which objects can't be migrated in CX as code (the goal is to migrate the existing production organization A to the newly activated organization B).
2. Question 2:
I am use the Terreform and CX as Code for export de flow in the Organization. My "main.tf" file is:
# Define los proveedores necesarios.
terraform {
required_providers {
genesyscloud = {
source = "mypurecloud/genesyscloud"
version = ">= 1.4" # asegúrate de usar una versión del proveedor que soporte exportación completa
}
}
}
# Configuración del proveedor para la organización de ORIGEN.
provider "genesyscloud" {
oauthclient_id = "XXXXX"
oauthclient_secret = "XXXXX"
aws_region = "us-east-1"
}
resource "genesyscloud_tf_export" "export" {
directory = "./export" # carpeta destino donde se exportarán los archivos
include_state_file = true # si quieres que genere también el estado (.tfstate) junto con los archivos
log_permission_errors = true # para que muestre errores de permisos si los hay
#export_as_hcl = true # mejor en HCL para usarlo directamente en Terraform # por defecto genera JSON; si tu versión lo soporta puedes pedir HCL :contentReference[oaicite:1]{index=1}
export_computed = true
#export_format = "hcl"
ignore_cyclic_deps = true
compress = false
enable_dependency_resolution = true
use_legacy_architect_flow_exporter = false
split_files_by_resource = false
# Nuevo atributo recomendado
include_filter_resources = ["genesyscloud_flow::Menu_Pruebas_Edward"]
# Muy útil: esto asegura que se exporten dependencias del flujo
#include_dependencies = true
}
I have 2 scenary:
1. When active the enable_dependency_resolution = false and use_legacy_architect_flow_exporter = false, the export is inmediaty and the result is export 4 files: genesyscloud.tf.json, terraform.tfstate, terraform.tfstate.1759274123.backup and Menu_Pruebas_Edward-INBOUNDCALL-c3eab20b-4d16-450e-904e-20319cce771a.yaml (to see in ftp folder "20251001_export"). This export have not dependency,
2. When active the enable_dependency_resolution = true and use_legacy_architect_flow_exporter = false, the export or task never ended. I execute the task until 5 hours without result. What should I correct?
I requiere export de flow with all dependencies. For exemple: queue, data action, data table, prompts, schedule, milestone, outcome, etc. Is possible? How should I adjust the filter or the file?
I appreciate your prompts answers, Edward.
#CXasCode