Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Settings, State shared
Settings, State shared

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.

Supported from Terrakube 2.15.0.

Last updated

Was this helpful?