Export individual GC objects using Terraform

I have used the "genesys_tf_export" "export" resource in Terraform to export all instances of a particular Genesys Cloud object (e.g. export all datatables). Is there a way to use Terraform to export a single instance of an object type (e.g. the data table named "My Control Data Table")?

Thanks in advance to the community!

Hi Craig,

There is a new feature in the exporter that should be able with this. You can now filter for resources using a regular expression.

resource "genesyscloud_tf_export" "export" {
  directory = "./terraform"
  // leaving resource_types empty will cause all exportable resources to be exported
  // export all resources of a single type by providing the resource type
  // resources can be exported by name with the syntax `resource_type::regular expression`
  include_filter_resources = ["genesyscloud_user", "genesyscloud_routing_queue::-(dev|test)$"]
  include_state_file       = true
  exclude_attributes       = ["genesyscloud_user.skills"]
}

Feel free to look at the exporter documentation for more info. Ensure you are using the latest version to use this feature.

Regards,
Declan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.