Share Workspace State
One workspace can read another workspace's outputs with the standard terraform_remote_state data source. This is how, for example, an application workspace reads the VPC id exported by a network workspace.
Allow sharing
State is private by default. In the producer workspace open Settings → State shared and tick Share this workspace's state with all workspaces in the organization. Every workspace in the organization can then read it, and state can contain secrets, so only enable it when that is acceptable.

Read it from another workspace
In the consumer configuration use the remote backend and point it at your Terrakube hostname, organization and the producer workspace:
Only root-module outputs of the producer are readable. If the producer should trigger the consumer when it changes, add a run trigger.
Last updated
Was this helpful?