Workspace Block

Workspace Block

The workspace block describes cache related information.

ℹ️
To leverage caching capabilities and enable fast builds on CI, you need to create an account on Insights. There you can create a workspace which can be used with Terrabuild.

Once you have created an account and a workspace on Insights, create a token to allow Terrabuild to use the specified workspace.

For this, issue the following command for your workspace:

terrabuild login --workspace <workspaceId> --token <token>

And voilà! Your builds will be faster!

⚠️
If you are connected to a workspace and would like to build without cache support, you can use the --local-only argument to ignore it.

Example Usage

workspace {
    id = "af628998-bd53-4063-b054-f0b87965edd4"
    ignores = [ "src/project-1" ]
}

Argument Reference

The following arguments are supported:

  • id - (Optional) Workspace Id.
  • ignores - (Options) List of projects to ignore (globbings). Globbings are relative to workspace folder.
Last updated on