This topic explains how to configure the MART service account.
Adding the MART service account
MART and Apigee Connect require a Google Cloud service account for authentication.
- Locate the key file for the
apigee-martservice account. The file should have a.jsonextension.ls $HYBRID_FILES /service-accounts
- PROD
installations:
apigee-mart.json - NON-PROD
installations:
apigee-non-prod.json
- PROD
installations:
- If you do not see the MART service account file, create and download it with the
create-service-accountutility:- Make sure your
PROJECT_IDenvironment variable is set:echo $PROJECT_ID
Define it if needed:
export PROJECT_ID= my-project-id - Create the MART service account. You can find the
create-service-accounttool in:- For Helm Charts installations:
APIGEE_HELM_CHARTS_HOME / └── apigee-operator/ └── etc/ └── tools/ └── create-service-account - For
apigeectlinstallations:APIGEECTL_HOME / └── tools/ └── create-service-account
PROD
create-service-account \ --env prod \ --profile apigee-mart \ --dir PATH_TO_SERVICE_ACCOUNTS_DIRNON-PROD
$HYBRID_FILES/tools/create-service-account \ --env non-prod \ --profile apigee-mart \ --dir PATH_TO_SERVICE_ACCOUNTS_DIR - For Helm Charts installations:
- Make sure your
- Edit your
overrides.yamlfile and add the key file path to theconnectAgentandmart.serviceAccountPathproperties:PROD
connectAgent : serviceAccountPath : path_to_apigee - mart . json mart : serviceAccountPath : path_to_apigee - mart . json
NON-PROD
connectAgent : serviceAccountPath : path_to_apigee - non - prod . json mart : serviceAccountPath : path_to_apigee - non - prod . json
For example:
Helm
... connectAgent: serviceAccountPath: /apigee/hybrid/helm-charts/apigee-org/apigee-mart.jsonmart: serviceAccountPath: /apigee/hybrid/helm-charts/apigee-org/apigee-mart.json...
apigeectl... connectAgent: serviceAccountPath: /apigee/hybrid/hybrid-files/service-accounts/apigee-mart.jsonmart: serviceAccountPath: /apigee/hybrid/hybrid-files/service-accounts/apigee-mart.json...
- Apply your changes:
Helm
helm upgrade ORG_NAME apigee-org/ \ --namespace apigee \ --atomic \ -f OVERRIDES_FILE .yaml
apigeectl$APIGEECTL_HOME/apigeectl apply -f OVERRIDES_FILE .yaml --org

