-
Notifications
You must be signed in to change notification settings - Fork 4
Synchronizer re create with different id
Yuriy Lesyuk edited this page Mar 19, 2020
·
2 revisions
Skip steps as appropriate.
?. Edit runtime config file
vi hybrid-demo6-1.1.sh
...
export SYNCHRONIZER_ID=apigee-synchronizer1
...
?. Update environment variables
source hybrid-demo6-1.1.sh
?. Regenerate hybrid config file
ahr-runtime-ctl template $AHR_HOME/templates/overrides-large-template.yaml > $RUNTIME_CONFIG
?. Create synchronizer Service Account
ahr-sa-ctl create synchronizer $SYNCHRONIZER_ID
?. Check syncronizer Service Account ?. Create synchronizer Service Account
ahr-sa-ctl config synchronizer $SYNCHRONIZER_ID
?. Set Sync Authorization. Copy-and-paste from ahr-runtime-ctl
(
SYNCHRONIZER_SA_ID=apigee-synchronizer1@emea-cs-hybrid-demo6.iam.gserviceaccount.com
curl -X POST -H "Authorization: Bearer $(token)" -H "Content-Type:application/json" "https://apigee.googleapis.com/v1/organizations/$ORG:setSyncAuthorization" --data-binary @- <<EOF
{
"identities": [ "serviceAccount:$SYNCHRONIZER_SA_ID" ]
}
EOF
)
?. Re-apply synchronizer
(
cd $APIGEECTL_HOME
apigeectl -c synchronizer delete -f $RUNTIME_CONFIG
apigeectl -c synchronizer apply -f $RUNTIME_CONFIG
)