As far as I can tell, you can't create folders per se outside of the AWS Console (neither TF nor CF nor the CloudControl API supports it). The next best thing I would try is to just put an empty text file called
.s3folderkeep
or something (like
.gitkeep
since git also does not allow for empty folders).
w
witty-barista-69390
08/29/2022, 10:12 PM
Gotcha, so just create a dummy file and use s3.BucketObject to force it to create the folder
s
stocky-restaurant-98004
08/29/2022, 10:54 PM
Yeah. I think that's the best you can do.
b
big-agent-83308
08/30/2022, 3:36 AM
There are no "folders" in S3 - they are zero byte objects where the keys end in a
/
So yep, create a BucketObject with the required folder path as it's key
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.