I am trying to execute a simple terraform piece of code in GitHub Actions in order to create and automatic export pipeline. When I execute this code locally it works correctly and then the genesyscloud.tf file gets created. But when I do it via GitHub actions and Terraform Cloud the file can't be stored for some reason. I know that the Terraform Cloud workspace gets deleted when the job ends but I think there should be a way to store this output file somewhere in our github repo.
One way you could do this is to store the item as an artifact as part of the build. The containers that run a GitHub action are ephemeral and go away from the action is complete. Artifacts stay with the build (though I don't know for how long). You can take a look at a github action that can upload an artifact.
While a CX as Code export does export most resource definitions you keep the following in mind:
Not all objects in Genesys Cloud are supported yet in CX as Code so it is not a true backup.
Our exports only the configuration of a Genesys Cloud object. If there was an artifact associated with the flow (e.g. a prompt wav file, an Architect flow, etc....) the actual file will not be exported.
While the export can be used as part of a homegrown backup process it is not intended to be a backup and recovery solution. It is the responsibility of the customer to build and test this type of solution using their Terraform exports.
I hope that helps.
Thanks,
John Carnell
Manager, Developer Engagement