Configuration
Target
Configure a GCP target in your Forma file:Credentials
The plugin uses the standard GCP credential chain. Application Default Credentials (ADC):google-github-actions/auth with Workload Identity Federation.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Configure a GCP target for formae: credentials and target settings.
import "@formae/formae.pkl"
import "@gcp/gcp.pkl"
target: formae.Target = new formae.Target {
label = "gcp-target"
config = new gcp.Config {
project = "your-project-id"
region = "us-central1"
// Optional: path to service account key file
// credentialsFile = read("env:GCP_CREDENTIALS_FILE")
}
}
gcloud auth application-default login
export GCP_CREDENTIALS_FILE="/path/to/service-account-key.json"
config = new gcp.Config {
project = "your-project-id"
region = "us-central1"
credentialsFile = read("env:GCP_CREDENTIALS_FILE")
}
google-github-actions/auth with Workload Identity Federation.
| Environment Variable | Description | Required |
|---|---|---|
GCP_PROJECT_ID | GCP project ID | Yes |
GCP_PROJECT_NUMBER | GCP project number | For WIF |
GCP_REGION | GCP region (e.g., europe-central2) | Yes |
GCP_ZONE | GCP zone (e.g., europe-central2-b) | For zonal resources |
GCP_CREDENTIALS_FILE | Path to service account JSON key | Local only |
