CLI Reference

Burla's CLI contains the following commands:

  • burla install Deploy self-hosted Burla in your Google Cloud project.

  • burla login Connect your computer to the cluster you last logged into in the browser.

The global arg --help can be placed after any command or command group to see CLI documentation.


burla install

Deploy a self-hosted Burla instance in your current Google Cloud Project. Running burla install multiple times will update the existing installation with the latest version.

Description:

Installs Burla inside the Google Cloud project that your gcloud CLIarrow-up-right is currently pointing to. For a more user-friendly installation guide see: Installation: Self-Hosted

To view your current gcloud project run: gcloud config get project To change your current gcloud project run: gcloud config set project <desired-project-id>

Prerequisites:

Here is the set of permissions you'll need to run burla install: Any of these three permission set's will work.

chevron-rightSimplest possible permissionshashtag

Burla can be installed by users having the project editor (roles/editor) role.

chevron-rightService admin based permissions (more specific)hashtag

Burla can be installed by users having the following generic roles:

  1. Service Usage Admin (roles/serviceusage.serviceUsageAdmin)

  2. Cloud Run Admin (roles/run.admin)

  3. Compute Network Admin (roles/compute.networkAdmin)

  4. Secret Manager Admin (roles/secretmanager.admin)

  5. Service Account Admin (roles/iam.serviceAccountAdmin)

  6. Service Account Key Admin (roles/iam.serviceAccountKeyAdmin)

  7. Project IAM Admin (roles/resourcemanager.projectIamAdmin)

  8. Firestore / Datastore Owner (roles/datastore.owner)

chevron-rightExact minimum required permissions (very specific) (IAM role)hashtag

Below is an IAM role definition for this minimum installer permission set.

To create this IAM role, put the lower text in a file called burla-installer-role.yaml. Then run the following command:

Contents of burla-installer-role.yaml:

These permissions are only required to install Burla, they are not granted to the Burla service itself. Upon install Burla creates a service account for itself having this minimum set of permissionsarrow-up-right.

circle-info

On install, your Google account (the one you are currently logged in to gcloud with) is set as the only account authorized to access this new Burla deployment.

We encourage you to check out _install.pyarrow-up-right in the client for even more specific installation details.


burla login

Connects your computer to the Burla cluster you most recently logged into in your browser. Authorizes your machine to call remote_parallel_map on this cluster.

Description:

Launches the "Authorize this Machine" page in your default web browser.

If there is no auth-cookie (you have not yet logged into the dashboard), throws simple error requesting you login to your cluster dashboard first.

When the "Authorize" button is hit, a new auth token is created and sent to your machine.

This token is saved in the text file burla_credentials.json. This file is stored in your operating system's recommended user data directory which is determined using the appdirsarrow-up-right python library.

This token is refreshed each time the burla login is run, or certain amount of time passes.


Questions? Schedule a call with usarrow-up-right, or email [email protected]. We're always happy to talk.

Last updated