If I understand your problem correctly it sounds like you need to use the replace_with_datasource property on the export. You can see the docs for this here
Thanks for the update. Do I need to add this step in the export config or after the data is exported?
I am getting this error:
│ Error: Unsupported argument
│
│ on core_main.tf line 21, in resource "genesyscloud_tf_export" "export":
│ 21: replace_with_datasource = ["genesyscloud_auth_division::OPEN_AAA"]
│
│ An argument named "replace_with_datasource" is not expected here.
Thanks for the update, but I am getting this error:
│ on genesyscloud.tf line 13, in resource "genesyscloud_architect_schedulegroups" "OPEN_PRLL_APAC_VNM_SG":
│ 13: open_schedules_id = [data.genesyscloud_architect_schedules.OPEN_PRLL_APAC_VNM_HOOP.id]
│
│ A data resource "genesyscloud_architect_schedules" "OPEN_PRLL_APAC_VNM_HOOP" has not been declared in the root
│ module.
Can you post your original export configuration and the exported tf file? The error you are getting indicates that the data source reference was created without defining the data source. We won't know until we can see what your full file looks like. Make sure when you post you don't include any passwords or credentials.
Thanks,
John Carnell
Director, Developer Engagement