Inspired by/based on kickstarter/docker-s3-sync
A small docker image that will (periodically) sync an S3-bucket to a local directory.
This can for instance be used as a sidekick-container with a shared filesystem to sync keys or configs.
The syncer can be configured with environment variables:
AWS_REGIONthe region of the s3-bucket
S3_BUCKETthe source bucket
S3_KEYthe key in the bucket that will be synced. Must be a folder
DESTINATIONthe local file path where the files will be stored
IAM_ASSUME_ROLE_ARNoptional IAM-role arn to assume before syncing the files
MODEoptional file mode for the synced files
OWNER_UIDoptional owner uid for the synced files
OWNER_GIDoptional owner gid for the synced files