You can compress multiple files with Amazon Web Services (AWS) S3Zipper.
Warning: Celigo has not verified, used, or endorsed the S3Zipper tool. Use it at your own cost and risk.
Create a flow to zip and upload a file to an FTP server.
Requirements:
- FTP connection
- Amazon S3 connection
-
HTTP connection to Amazon S3Zipper
- Base URI: https://api.s3zipper.com/
Step 1: FTP export to retrieve files
-
Create an FTP export.
- Do not parse your files.
Step 2: Import your files to Amazon S3
Import (transfer) your files to Amazon S3.
- Generate files from records: No.
- Region: The default Amazon S3 region is [us-east-1]. To change the region, select the region for this S3 account.
- Bucket name (required): Name of the bucket in S3, where you want the file to be saved.
-
File key (required): Add handlebars for each filename. For example, {{record.files.*.fileName}}
Note: Do not substitute the fileName with your filename; it will be dynamically created by the handlebars expression.
- Advanced:
Step 3: Import to Amazon S3Zipper
Import (transfer) your file to Amazon S3Zipper (HTTP) and store the zipped file in your S3 account. In your import:
- Generate a file from your record: No.
- HTTP method (required): POST
- Relative URI (required): /v2/zipstart
-
HTTP request body:
[ {"name" : "awsKey", "value" : "********"}, {"name" : "awsSecret", "value" : "*********"}, {"name" : "awsBucket", "value" : "directoryPath"}, {"name" : "awsRegion", "value" : "us-east-1"}, {"name" : "filePaths", "value" : "directoryPath/{{record.files.0.fileName}}"}, {"name" : "filePaths", "value" : "directoryPath/{{record.files.1.fileName}}"}, {"name" : "filePaths", "value" : "directoryPath/{{record.files.2.fileName}}"}, {"name" : "filePaths", "value" : "directoryPath/{{record.files.3.fileName}}"}, {"name" : "zipTo", "value" : "directoryPath"}, {"name" : "zipFileName", "value" : "{{record.files.4.fileName}}.zip"} ]
Step 4: Amazon S3 lookup
Build an Amazon S3 Lookup to get the ZIP file.
Step 5: Import the ZIP file to your FTP server
Create an FTP import to transfer the ZIP file to your FTP server.
Comments
Please sign in to leave a comment.