I have a number of Google cloud TPU-VMs which need to write to a Bucket.
Most of them work fine, but the one I created this morning is giving me Access Denied when I run gsutil -m cp test_file.txt gs://MY_BUCKET_NAME
:
"error": {
"code": 403,
"message": "Access denied.",
"errors": [
{
"message": "Access denied.",
"domain": "global",
"reason": "forbidden"
}
]
The VM is identical to all the others as far as I can see (same project, same versions, same region, same service account, gcloud config list
and gcloud auth list
give identical results) - any ideas why it's behaving differently?
This still happens even when I give allUsers
public permissions to write to the bucket.