badsyntax/AWS S3 Sync & Clean
Sync or clean an S3 bucket using parallel uploads and intelligent ETAG comparisons (even for multipart files).
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| bucket | The name of the S3 bucket | yes | — |
| action | The action to perform. Accepted values: sync|clean | yes | — |
| src-dir | Source directory of local files to sync (if using the sync action) | no | "" |
| files-glob | Glob pattern for source files to sync to S3 (if using the sync action) | no | "" |
| aws-region | The AWS region. For example: us-east-1 | — | — |
| prefix | The prefix for the uploaded object. For example: 'custom/folder' | — | "" |
| sync-strategy | A newline-separated list of criteria to define the sync strategy. Criteria include: ETag, ContentType, CacheControl, LastModified, ContentLength | no | ETag ContentType CacheControl |
| strip-extension-glob | Glob pattern to strip extension (f using the sync action). For example: '**/**.html' | — | "" |
| cache-control | Cache-control header. For example: public,max-age=31536000,immutable | — | "" |
| acl | "authenticated-read" | "aws-exec-read" | "bucket-owner-full-control" | "bucket-owner-read" | "private" | "public-read" | "public-read-write" | no | "" |
| multipart-file-size-mb | The minimum file size, in megabytes, for which to upload files using multipart. The default is 100 | no | 100 |
| multipart-chunk-bytes | The chunk size, in bytes, to upload multipart file parts in. The default is 10485760 (10MB) | no | 10485760 |
| concurrency | How many processes to perform at once. Default is 6 | no | 6 |
Outputs
| name | description |
|---|---|
| modified-keys | A comma separated list of modified object keys (either synced or removed). For example: file1,folder1/file2.ext |