Genesys Cloud - Developer Community!

 View Only

Sign Up

Terraform genesyscloud_tf_export outputs draft versions of flows

  • 1.  Terraform genesyscloud_tf_export outputs draft versions of flows

    Posted 3 hours ago
    Edited by Nick Tait an hour ago

    (I logged this as an issue on GitHub a week ago, but haven't got any response. So I'm trying here...)

    I've been playing with genesyscloud_tf_export resource in Terraform for exporting flows, and my testing shows that:

    • The exported flow resource's depends_on attribute seems to be based on the last published version of the flow.
    • The YAML file content is the latest version of the flow.

    I've also done some testing with some other object types (Scripts and Data Actions) and I can confirm that unpublished versions are ignored.

    So for consistency with these other object types, the fix required for flows should be:

    1. Ignore any flows that have never been published.
    2. For flows that are published, retrieve the YAML content of the last published version (not the last saved version).

    I hope this makes sense?


    #CXasCode

    ------------------------------
    Nick Tait
    Genesys Consultant
    ------------------------------