In diesem Thema wird erläutert, wie Sie das MART-Dienstkonto konfigurieren.
MART-Dienstkonto hinzufügen
Mart erfordert ein Google Cloud-Dienstkonto für die Authentifizierung.
- Laden Sie die Schlüsseldatei für das
apigee-mart-Dienstkonto herunter: Die Datei sollte die Erweiterung.jsonhaben.ls $HYBRID_FILES/service-accounts
- Produktions-Installationen:
apigee-mart.json - Nicht-Produktions-Installationen:
apigee-non-prod.json
- Produktions-Installationen:
- Wenn Sie die MART-Dienstkontodatei nicht sehen, erstellen Sie sie mit dem Dienstprogramm
create-service-accountund laden Sie sie herunter:- Prüfen Sie, ob die Umgebungsvariable
PROJECT_IDfestgelegt ist:echo $PROJECT_ID
Definieren Sie sie bei Bedarf:
export PROJECT_ID=my-project-id
- Erstellen Sie das MART-Dienstkonto:
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
- Prüfen Sie, ob die Umgebungsvariable
- Bearbeiten Sie die Datei
overrides.yamlund fügen Sie dem Attributmart.serviceAccountPathden Schlüsseldateipfad hinzu:PROD
... mart: serviceAccountPath: path_to_apigee-mart.json ...
NON-PROD
... mart: serviceAccountPath: path_to_apigee-non-prod.json ...
Beispiel:
... mart: serviceAccountPath: /apigee/hybrid/hyprid-files/service-accounts/apigee-mart.json ...
- Übernehmen Sie Ihre Änderungen mit
apigeectl apply:$APIGEECTL_HOME/apigeectl apply -f overrides/overrides.yaml