Only do this the first time running this terraform:
pip3 install google_auth_httplib2- Run
.\gw-service-account.py. It will fail on thecloudshellstep but should still download the.jsonkey locally -- DO NOT COMMIT THE JSON FILE! - Run
export GOOGLEWORKSPACE_CREDENTIALS=$(pwd)/tfws-service-account-key-DATE.json
Next:
- Configure the correct values in
terraform.tfvarsfor your user. terraform init -upgradeterraform apply
NOTES:
If importing a user role assignment, you'll need to retrieve the roleAssignmentId from somewhere like https://developers.google.com/admin-sdk/directory/reference/rest/v1/roleAssignments/list