https://pulumi.com logo
g

glamorous-waitress-51149

07/23/2019, 8:56 AM
is there a way to set the destination file/folder structure in an s3 bucket? For example:
Copy code
let object = new aws.s3.BucketObject(item, {
        bucket: bucket,
        source: new pulumi.asset.FileAsset(item),     // use FileAsset to point to a file
        contentType: mime.getType(item) || undefined, // set the MIME type of the file
        
        
    });
g

gentle-diamond-70147

07/23/2019, 2:47 PM
I believe setting
key
on the
BucketObject
is what you want.