Add a Cloud Storage bucket
We still assume you have followed the previous pages.
To add a cloud storage bucket, you can add this to the depends_on
block of your service yaml:
cloudstorage:
- name: baz
public: true
access: readwrite
The properties are worth noting:
public
: whether the bucket is publicly read-accessible on the internet. Can be omitted and will default tofalse
if omitted.access
:readwrite
orreadonly
.readonly
doesn't really make sense ifpublic: true
.
Again, when you apply
, the correct IAM permissions will be added to your service.