This topic explains how to configure the MART service account.
Adding the MART service account
MART requires a Google Cloud service account for authentication.
- Locate the key file for the
apigee-mart
service account. The file should have a.json
extension.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-account
utility:- Make sure your
PROJECT_ID
environment variable is set:echo $PROJECT_ID
Define it if needed:
export PROJECT_ID=my-project-id
- Create the MART service account:
PROD
$HYBRID_FILES/tools/create-service-account \ --env prod \ --profile apigee-mart \ --dir $HYBRID_FILES/service-accounts
NON-PROD
$HYBRID_FILES/tools/create-service-account \ --env non-prod \ --profile apigee-mart \ --dir $HYBRID_FILES/service-accounts
- Make sure your
- Edit your
overrides.yaml
file and add the key file path to themart.serviceAccountPath
property:PROD
... mart: serviceAccountPath: path_to_apigee-mart.json ...
NON-PROD
... mart: serviceAccountPath: path_to_apigee-non-prod.json ...
For example:
... mart: serviceAccountPath: /apigee/hybrid/hyprid-files/service-accounts/apigee-mart.json ...
- Apply your changes with
apigeectl apply
:$APIGEECTL_HOME/apigeectl apply -f overrides/overrides.yaml