Skip to content

Environment Variables

Credentials and connection details stay outside the manifest. v0.3.0 reads the process environment and, if present, .agoraform.env next to the selected manifest. Process environment variables always win.

Never put these values in YAML, plan output, logs, or agoraform.state.json.

VariableRequiredDescription
MATOMO_URLyesMatomo base URL, for example https://matomo.example.com
MATOMO_TOKEN_AUTHyesAPI token
MATOMO_SITE_IDfor site resourcesNumeric site ID
MATOMO_CONTAINER_IDfor Tag ManagerTag Manager container ID
VariableRequiredDescription
GOOGLE_ADS_DEVELOPER_TOKENyesGoogle Ads API developer token
GOOGLE_ADS_CLIENT_IDyesOAuth 2.0 client ID
GOOGLE_ADS_CLIENT_SECRETyesOAuth 2.0 client secret
GOOGLE_ADS_REFRESH_TOKENyesOAuth 2.0 refresh token
GOOGLE_ADS_CUSTOMER_IDyes10-digit customer ID (hyphens optional)
GOOGLE_ADS_LOGIN_CUSTOMER_IDnoManager-account customer ID

When Agoraform starts, it looks for .agoraform.env next to the selected manifest. With the default agoraform.yaml, that is the current directory. With -f path/to/agoraform.yaml or a positional manifest path, Agoraform loads path/to/.agoraform.env. If the file is absent, environment-variable behavior is unchanged.

See project structure for file format and security guidance.