Reputation: 3419
Goal : To sync the local machine directory to the gcloud bucket.
I have authenticated with the service account using the key file and even check the auth using gcloud auth list
but wasn't able to sync the file using gsutil rsync -r data gs://mybucket/data
.
I have attached the screenshot of the error.
PS: Dont link the issue to another issues. I have tried all the possible way and have went those lots of git and stack pages and still couldn't find a solution.
Upvotes: 3
Views: 242
Reputation: 3419
(*)After the authentication of the service account : gcloud auth activate-service-account [ACCOUNT] --key-file=KEY_FILE
(*)Activate the account: glcoud auth list
and activate the account with following code that was shown below.
(*)config the gsutil : gsutil config
(*)Provide the authentication code
This worked for me.
Upvotes: 1