08/02/2021, 11:25 PM
Hi all! I'm struggling to figure out how nested buckets are created with GCS. My code looks like:
const bucketHome = new"bucket-web", {
  name: bucketHomeName,
  location: hostArea,

const bucketFrontendDeploys = new"bucket-frontend-deploys", {
  name: pulumi.interpolate`${}/deploy/frontend`,
  location: hostArea,
But Google doesn't allow slashes in a bucket name, so although
will be created fine, the second
will give back an error
googleapi: Error 400: Invalid bucket name
when I run
pulumi up
. That leaves me with the question: How exactly do you created nested buckets?! It feels like there's something simple that I'm missing. Any pointers would be much appreciated.
hmmm.. I've been reading through the docs and it seems that it's not possible to create subdirectories - only files that "appear" to be in subdirectories.


08/03/2021, 7:21 AM
Hi Louis, this issue is not related to Pulumi. If you are looking for an analogy: the bucket is the storage (ie, the disk), and what you put inside, objects, are like files. GCP has retriction on bucket name, so you cannot use slash in bucket name. The general principle is explained hereĀ :
šŸ‘ 1