Here’s how to set the instance scope in GCP.
Stop the server.
gcloud compute instances stop server-name |
Change the scopes.
gcloud alpha compute instances set-scopes server-name \ --service-account=your-service-account@gserviceaccount.com \ --scopes=logging-write,storage-rw \ --project your-project-id \ --zone=us-central1-a |
Standard scopes
gcloud alpha compute instances set-scopes servername \ --service-account=your-service-account@gserviceaccount.com \ --scopes=service-management,logging-write,monitoring-write,trace,storage-rw \ --project your-project-id \ --zone=us-central1-c |
Start the server.
gcloud compute instances start server-name |
GCP Scope Documentation.