Cant perform simple write to Google Cloud Bucket

662 views Asked by At

I cannot do a simple write operation on my Google Cloud Bucket. I have followed the docs to the detail. This is what I have: A default bucket, A php script, all api needed enabled.

Here is my script

<?php
   file_put_contents('gs://myappid.appspot.com/hello.txt', 'Hello');
?>

Yet this does not write. What am I missing?

1

There are 1 answers

1
varepsilon On

According to the latest docs you seem to also need to have billing enabled, even if you are only planning to use the free quota.