How to reference module present in a different work workspace

Hi Team,
I am new to terraform. I am writing terraform code to provision a secondary aurora cluster in different region. Primary aurora cluster/instance is already implemented/provisioned. Now for me to provision secondary aurora cluster/instance in a different region, i need to reference the primary cluster/instance, and this primary cluster/instance module is in a different workspace. I have setup a new project in git for provisioning secondary aurora cluster and mapped this to new workspace in terraform. How do i reference the primary cluster/instance module which is in a different workspace in the new workspace.

Hi @anandkl

Take a look at Terraform AWS data sources: RDS Cluster or any of the other data sources.

You can query AWS for the Primary aurora cluster/instance created in a different workspace, and used them in the new workspace.