Skip to content

Google Cloud

The engine runs in a Google Cloud project of yours, as Terraform your own GitLab pipeline applies. Models are called through Vertex AI, in your project and region, by the gateway’s service account alone. LightHouse never applies anything in your projects.

In LightHouse, Setup and admin → Where agents run, choose Google Cloud, a region and a profile, then Get my stack. LightHouse shows two Terraform files in full, each with a Copy button:

  1. bootstrap.tf, which a person applies once, in a small bootstrap project of its own beside your workload project, so no workload apply can reach what applies it. It calls Atlantic’s gcp-bootstrap module, pinned to infrastructure release v0.7.0.
  2. main.tf, which calls Atlantic’s Google Cloud module at the same release, with the telemetry relay and the content reader turned on. Commit it to your own infrastructure repository; your pipeline plans and applies it, as a reviewed merge request.

There is no console link for Google Cloud.

Variable What to give
bootstrap_project_id The bootstrap’s own project (the module’s project_id)
workload_project_id Your workload project, where main.tf is applied
gitlab_project_path The full path of the gitlab.com project that applies the Terraform

Its outputs are state_bucket (terraform init -backend-config="bucket=<state_bucket>"), workload_identity_provider, plan_service_account and apply_service_account, for your pipeline’s workload identity configuration.

Your organisation’s short name in LightHouse names the resources, and Google Cloud’s modules take at most 18 characters, starting with a letter. If yours is longer, LightHouse says so instead of generating a stack that would fail at plan; ask Atlantic.

  • A workload project, and a bootstrap project beside it.

  • A gitlab.com project whose CI can request an ID token, with a protected production environment for the apply job.

  • A module access token from Atlantic: a per-tenant, read-only deploy token whose scope is the package registry read only, revocable per client. Your Terraform job reads the modules with it through a netrc file, stored as a masked, file-type CI/CD variable, with NETRC set to that variable; a person applying bootstrap.tf needs the same token. The file holds one line:

    machine gitlab.com login <the token's username> password <the token>
  • For main.tf’s variables: the workload project ID; the product’s and the gateway’s images by digest; an image carrying the engine (the gateway image will do) for the relay and the reader; the gateway policy; the address ranges allowed in; a regional SSL certificate; the monthly budget and the billing account. With no billing account, no budget is created and the budget is set on the billing account by hand: the apply account has no billing rights.

Terraform creates the secrets empty; a person fills them. The fill_after_apply output of main.tf lists them, by what goes in each, including the product’s secret key.

Your Google Cloud project: one region you choose, in a VPC that denies ingress

Way in

  • Load balancer, regional HTTPS load balancer, Cloud Armor: open to your address ranges only

your people and systems, from your address ranges

Engine

  • Gateway, Cloud Run, warm or scaled to zero: the only path to a model: policy, caps, kill switch
  • Your product and agents, Cloud Run: runs your agents through the gateway
  • Telemetry relay, Cloud Run, internal ingress: signs content-free records
  • Content reader, Cloud Run worker pool · a job every minute: no endpoint; answers reads signed by Atlantic
  • Command channel, Cloud Run worker pool · a job every minute: applies signed commands your policy allows
  • Connector-schedule tick, a Cloud Run job, Cloud Scheduler: every 15 minutes, syncs your sources

model calls, from the gateway's service account alone, over Private Service Connect

Models

  • Vertex AI, in your project and region: Model Armor screens every call

Kept in your project

  • Secrets, Secret Manager, in-region: the deployment key, tokens, connector credentials
  • Database and index, Cloud SQL for PostgreSQL: on a private address
  • Logs, Cloud Logging, a regional bucket: every content read, recorded

One outbound path, through Cloud NAT, over HTTPS

  • Operational telemetry (downward): counts, costs and timings from the relay, signed by your deployment. Never content
  • Content, read in place (both ways): a read signed by Atlantic, answered by your reader on the connection it opened
  • Signed commands (upward): pause, approve, set a cap: checked by your command channel against your policy

LightHouse: your tenant, in Atlantic's account: intake, API, MCP and portal

The stack your pipeline applies on Google Cloud. Every component runs in your project; Vertex AI answers the gateway's service account alone, with Model Armor on every call; the relay, the content reader and the command channel each dial out to LightHouse, and nothing listens for Atlantic. Where two forms are named, the second is the ephemeral profile's.
  • Cloud Run
  • Cloud SQL
  • Secret Manager
  • Cloud Storage
  • Cloud Scheduler
  • Vertex AI
Area Resources
Bootstrap (its own project) A state bucket in your region (versioned, uniform access, public access prevented, never force-destroyed, every read and write in the audit log); a workload identity pool and provider that accept tokens from your one GitLab project only; the plan and apply service accounts
Network A VPC with service and proxy subnets, a deny-ingress firewall, Private Service Connect for Google’s APIs, private DNS, Cloud Router and NAT
Logs A regional log bucket and sink, with the default bucket excluded
Database Cloud SQL for PostgreSQL on a private address, with deletion protection
Budget A billing budget, if you give the billing account
Compute Cloud Run services for the gateway and the app, behind a regional HTTPS load balancer with Cloud Armor, open to your address ranges only
Models Vertex AI access for the gateway alone, and Model Armor screening every call
Secrets Secret Manager, replicated within the region
Telemetry and reads The relay (Cloud Run, internal ingress) and the content reader (no endpoint; it dials out to LightHouse and answers only reads signed with Atlantic’s reader key)

The command channel, the connector-schedule tick and the sealing key are in the generated stack: the command channel with every command type off, connector credentials kept in your own Secret Manager, a slot for the sealing key, and the tick every 15 minutes, on both profiles.

Identity Holds Why
Plan service account roles/viewer and roles/iam.securityReviewer on the workload project Read-only, for plans from any branch of your GitLab project
Apply service account roles/editor, roles/secretmanager.admin, roles/modelarmor.admin and roles/servicenetworking.networksAdmin on the workload project What the stack creates. Usable only from main, in your protected production environment
roles/resourcemanager.projectIamAdmin, with a condition It may grant or remove only the stack’s four roles (Vertex AI user, Cloud SQL client, Cloud SQL instance user, Model Armor user); never Owner or an admin role
A custom role, lighthouseCloudRunIam_<client>, on the workload project (added by bootstrap.tf), with exactly four permissions: run.services.getIamPolicy, run.services.setIamPolicy, run.jobs.getIamPolicy and run.jobs.setIamPolicy Terraform must set who may invoke the Cloud Run services and jobs it creates, and the module’s apply roles do not include that. The role can change who may invoke a Cloud Run resource and nothing else. No condition yet limits it by resource name
Gateway (the only identity that may call a model) roles/aiplatform.user, Cloud SQL client, Model Armor user, and its own secrets
Product Its own secrets only

No service account key is created, and the bootstrap grants Atlantic no access to either project.

Turning models_enabled off removes the gateway’s Vertex AI role: a second kill switch. See Suspension.

LightHouse offers europe-west2 (the default), europe-west1, europe-west4, us-east4 and us-central1. Every resource, and the state bucket, is in the region you choose. Vertex AI regions must be named; there is no global endpoint. Model Armor’s location is set separately. See Regions.

The module defaults to always_on; LightHouse proposes ephemeral, and writes the profile you chose into main.tf.

Always-on Ephemeral
Gateway Cloud Run, two minimum instances No minimum instances; the first request starts one and waits for it
Relay One instance, CPU always allocated Scales to zero, woken by the first post
Content reader A worker pool holding its connection A Cloud Run job every minute, started by Cloud Scheduler; a read waits up to about a minute
Product One minimum instance One minimum instance
Database db-custom-2-7680 db-f1-micro, zonal (shared core, outside Cloud SQL’s SLA)
Estimated saving on the lines that differ (europe-west2) — around 87%

The estimated saving on those lines is around 87%, from the module’s cost model at list prices before free tiers and discounts (Cloud SQL at its us-central1 list price, so a floor for London). It is given as a proportion because the amount depends on your region, your currency, any committed-use or reserved pricing and the size you run. Your own figures appear in LightHouse once your deployment reports its infrastructure cost. The lines both profiles share (the product, the load balancer and Cloud Armor, Secret Manager, logging) are left out of both.

To switch, change deployment_profile, plan and apply: nothing holding data is replaced. Resizing the database is a separate change. See Deployment profiles.

Scheduled (scheduled, with wake_schedule) is built as ephemeral, and Cloud Scheduler sets the gateway service’s minimum instances at the start of each wake window and returns them to zero at its end, without making a new revision.

  • Upgrade: change the release version in the module package’s address (https://gitlab.com/api/v4/projects/<atlantic-project>/packages/generic/lighthouse-modules/<version>/lighthouse-modules.tar.gz), changed by getting the stack again for the new release, in a reviewed merge request. After an apply, fill_after_apply lists any secrets to fill. See Upgrades.
  • Remove: see Remove my stack, below.

As a client administrator, open Setup and admin → Run → Remove my stack. LightHouse generates a step-by-step guide (lighthouse-removal.md) and a pipeline job file (lighthouse-removal.gitlab-ci.yml) for this stack. It changes nothing itself, and nothing runs automatically: the jobs are manual, run on your main branch only, and refuse to run until the CI/CD variable LIGHTHOUSE_REMOVE names the deployment.

  1. Lift deletion protection, in an apply of its own. The Cloud SQL instance, both Cloud Run services and the Filestore share are protected, and the job lifts them before anything is destroyed. It refuses any plan that does more than that.
  2. Destroy the stack with terraform destroy.
  3. Delete the bootstrap, a person’s step. Its state bucket is emptied first, never force-destroyed.
  4. Deregister in LightHouse, a person’s step.

Deregistering is the last step. You sign in as a person with a second factor (a machine key or a delegated token is refused), type the deployment’s name again and give a reason. LightHouse then refuses the deployment’s signatures from that moment and records it in the audit log. Only Atlantic can reinstate it, within 30 days.