Hey @here, how can i use pulumi to upload multiple...
# typescript
m
Hey @here, how can i use pulumi to upload multiple files to a Google storage bucket? is this supported?
g
Yes, you can create multiple
gcp.storage.BucketObject
Loop over your files to create all of them
m
thanks, will give it a try
any recommendation by the chance how to loop over files in multiple folders?
g
Local files?
You can use whatever the language you use provides you
Like the native
fs
module for Node
👍 1
m
yup,gotcha
g
Here's an example of doing it for an S3 bucket and objects - https://github.com/pulumi/examples/blob/master/aws-ts-static-website/index.ts#L23-L72.
👍 1