Loading...
Loading...
lattice template use lattice/gcp-linuxThis will create a new workspace using this template configuration.
This template assumes that latticed is run in an environment that is authenticated
with Google Cloud. For example, run gcloud auth application-default login to
import credentials on the system and user running latticed. For other ways to
authenticate consult the Terraform
docs.
Lattice requires a Google Cloud Service Account to provision workspaces. To create a service account:
Navigate to the CGP console, and select your Cloud project (if you have more than one project associated with your account)
Provide a service account name (this name is used to generate the service account ID)
Click Create and continue, and choose the following IAM roles to grant to the service account:
Click Continue.
Click on the created key, and navigate to the Keys tab.
Click Add key > Create new key.
Generate a JSON private key, which will be what you provide to Lattice during the setup process.
This template provisions the following resources:
Lattice persists the root volume. The full filesystem is preserved when the workspace restarts. See this community example of an ephemeral AWS instance.
Note This template is designed to be a starting point! Edit the Terraform to extend the template to support your use case.
code-server is installed via the startup_script argument in the lattice_agent
resource block. The lattice_app resource is defined to access code-server through
the dashboard UI over localhost:13337.