Skip to content

Google Cloud CLI ​

Production runs on Google Cloud, which sysadmins operate with the Google Cloud CLI, gcloud, as the infra runbooks describe.

Install ​

Skip to Configure if this prints a version:

bash
gcloud --version

Use Google's repository:

bash
curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee /etc/apt/sources.list.d/google-cloud-sdk.list > /dev/null
sudo apt update && sudo apt install -y google-cloud-cli

Configure ​

Ask another sysadmin for an agorastoryverse.com account with production access. Then sign in with it:

bash
gcloud auth login

Check that both projects are listed:

bash
gcloud projects list

Tools such as OpenTofu sign in separately, through application default credentials. Give them the same account:

bash
gcloud auth application-default login