How to check for existing objects using CX As Code

I have built up a Terraform project to install a custom solution in a customer Genesys Org. The solution contains an itegration, data actions, data tables and flows. this all works fine. My question revolves around a common logging module we use at all our customer sites. Is there a way to check if the common module exists already and only install it if it does not already exists. I am afraid that if the common module already exists it will break the install process.

Thanks.
Mark

Hi Mark,

I have not used this yet, but you could look at pre-commit condition . I know that Terraform is also getting ready to release a check{} feature that will tell allow you to run a data source lookup before the command is executed.

Thanks,
John Carnell
Director, Developer Engagement