glamorous-waitress-51149
07/23/2019, 8:56 AMlet 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
});
gentle-diamond-70147
07/23/2019, 2:47 PMkey
on the BucketObject
is what you want.