Cannot Write to GCS Bucket

I cannot write to GCS Bucket. The Buckets have public access. I am training a tensorflow model and am intending to save the model files in GCS Bucket from TPU VMs but every time I try to do so I get a permission denied error.

PermissionDeniedError: Error executing an HTTP request: HTTP response code 403 with body '{
"error": {
"code": 403,
"message": "Access denied.",
"errors": [
{
"message": "Access denied.",
"domain": "global",
"reason": "forbidden"
}
]
}
}

0 1 1,229
1 REPLY 1

I think what you are trying to do is make your bucket writable by unauthenticated users. It is very dangerous, but it can be achieved in the console via Permissions, add a new entry with principal allUsers and role Object Creator. Check this link for further reference.