Watches a directory recursively for new files and uploads them to S3.
Configuration is controlled by environment variables.
Absolute path to directory to watch. Must include trailing slash. e.g. /absolute/path/to/files/
AWS region e.g. ap-southeast-2
Name of S3 bucket files will be uploaded to e.g. mybucket.example.com
String to prepend to file names when constructing keys. Defaults to an empty string.
S3 storage class used for storing objects. Can be STANDARD, STANDARD_IA or ONEZONE_IA. Defaults to STANDARD.
Duration in milliseconds specifying how often the watch directory should be polled for new files. Defaults to 500.
A regular expression used to filter paths. For example "mp4$" would only upload files ending with "mp4". Defaults to an empty string.
Build Docker image by running the following from the repository root.
docker build -t willdady/go-watch-s3:latest .