https://pulumi.com logo
Title
f

future-window-78560

05/19/2022, 2:43 AM
Hey team! any guide on how can we create folders in gcp bucket using pulumi??
f

freezing-van-87649

05/19/2022, 3:09 AM
Create an object and include a
/
in the name. folders don't exist: https://cloud.google.com/storage/docs/folders
If you create an empty folder using the Cloud console, Cloud Storage creates a zero-byte object as a placeholder. For example, if you create a folder called
folder
in a bucket called
my-bucket
, a zero- byte object called
<gs://my-bucket/folder/>
is created. You can find this object when you run
gsutil ls
.
f

future-window-78560

05/19/2022, 9:13 AM
@freezing-van-87649 Got it. Thankyou.
👍 1
f

freezing-van-87649

05/19/2022, 11:05 AM
AWS S3 works the same way, and I would guess any other implementations out there do it that way as well