├── s3rclone-iam-policy.json └── s3rclone-windows.txt /s3rclone-iam-policy.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "2012-10-17", 3 | "Statement": [ 4 | { 5 | "Effect": "Allow", 6 | "Action": [ 7 | "s3:ListBucket", 8 | "s3:DeleteObject", 9 | "s3:GetObject", 10 | "s3:PutObject", 11 | "s3:PutObjectAcl" 12 | ], 13 | "Resource": [ 14 | "arn:aws:s3:::YOUR_BUCKET_NAME", 15 | "arn:aws:s3:::YOUR_BUCKET_NAME/*" 16 | ] 17 | } 18 | ] 19 | } -------------------------------------------------------------------------------- /s3rclone-windows.txt: -------------------------------------------------------------------------------- 1 | #--------------------------------------------------------------- 2 | # Mount S3 Bucket on EC2 of Windows Server 2016, 2019 3 | # Tested with s3clone Version 1.53.4 4 | # 5 | # Copyleft (c) by Denis Astahov Date: 26-Jan-2021 6 | # https://github.com/rclone/rclone 7 | #--------------------------------------------------------------- 8 | 1. mkdir C:\S3Tools 9 | 2. Download Rclone from https://rclone.org/downloads/ 10 | 3. Extract rclone.exe and move it to C:\S3Tools\ 11 | 4. Download and Install WinFSP from http://www.secfs.net/winfsp/rel/ 12 | 5. Execute and follow ugly prompt: C:\S3Tools\rclone.exe config 13 | 6. Test what you can list bucket : C:\S3Tools\rclone.exe ls demo:bucket_name 14 | 7. Mount Bucket as Drive S: C:\S3Tools\rclone.exe mount demo:bucket_name S: --vfs-cache-mode full 15 | 8. Create file s3mount.cmd with content of the command from Step7 16 | 9. Copy file s3mount.cmd to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp 17 | --------------------------------------------------------------------------------