kty1965 / s3-batch-manifest-gen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

s3-batch-manifest-gen

format = ${bucket}/${contextPath}/dt=${from..to} all objects

For example

  • bucket: archiveBucket
  • from: 2023-01-24
  • to: 2023-01-25
  • contextPath = dev/logs
  • output = manifext.csv
bucket: archiveBucket, prefix: dev/logs/dt=20230124
bucket: archiveBucket, prefix: dev/logs/dt=20230125

CLI options types

sourceBucket: string
from: timestamp(ISO8601 String)
to: timestamp(ISO8601 String)
contextPath: string(basePath)
output: string
npx s3-batch-manifest-gen --sourceBucket=$BUCKET_NAME \
  --from=2022-06-30 \
  --to=2023-01-31 \
  --output=manifest.csv \
  --contextPath=dev/logs

About

License:MIT License


Languages

Language:TypeScript 72.4%Language:JavaScript 21.6%Language:Shell 6.0%