/*
* FIXME max 10 keys available
* Need to delete one to create one
*/
const credentialsPath = `.cache/${serviceAccount.uniqueId}.json`;
gcloud.invoke(
`iam service-accounts keys create ${credentialsPath} --iam-account=${serviceAccount.email}`
);
if (!delegated) {
const url =
'https://github.com/groton-school/blackbaud-to-google-group-sync/blob/main/docs/google-workspace-admin.md';
open(url);
await confirm({
message: `The Service Account Unique ID is ${lib.value(
serviceAccount.uniqueId
)}
Confirm that ${lib.value(
delegatedAdmin
)} has followed the directions at ${lib.url(url)}`
});
}
Need to delete one to create one
https://api.github.com/groton-school/blackbaud-to-google-group-sync/blob/005060d2298556b60ef3ba9a414efd20f53aa3e2/scripts/setup.js#L227