Legacy Dev Forum Posts

 View Only

Sign Up

Export individual GC objects using Terraform

  • 1.  Export individual GC objects using Terraform

    Posted 06-05-2025 19:34

    cbhenderson | 2023-08-10 16:23:53 UTC | #1

    I have used the "genesystfexport" "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!


    Declan_ginty | 2023-08-10 17:48:35 UTC | #2

    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


    system | 2023-09-09 17:48:43 UTC | #3

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


    This post was migrated from the old Developer Forum.

    ref: 21463