0.3.3 • Published 5 years ago
@fmtk/s3-unpack-asset v0.3.3
S3UnpackAsset
Upload a zip and unpack it to the specified bucket.
const bucket = new s3.Bucket(this, 'Bucket');
const asset = makeFileAsset(this, 'path/to/folder/');
new S3UnpackAsset(this, 'Unpack', {
sourceBucket: asset.s3BucketName,
sourceObjectName: asset.s3ObjectKey,
destinationBucket: bucket.bucketName,
destinationPrefix: 'foo/bar',
});