Home

Awesome

Rclone Lambda Layer

Rclone is an rsync for cloud storage, including S3, GCS, pCloud and so on.

This repository brings the power of rclone to aws lambda. It can be used along with cron-based schedules for instance to synchronize multiple drives on a regular basis.

Usage

Unfortunately no public layer is available. Fear no more, this one-liner automatically provisions one in your own account.

  1. Launch AWS CloudShell and run below commands:

    # Retrieve this code
    git clone https://github.com/badouralix/rclone-lambda-layer.git
    cd rclone-lambda-layer
    
    # Build AND publish lambda layer to your AWS Account (make script does both automatically)
    make all-amd64
    make all-arm64
    
  2. Add the newly added layer to your Lambda function. You may have to provide the specific ARN of your newly created layer to the lambda function.

    arn:aws:lambda:eu-west-3:123456789012:layer:rclone:4

License

Unless explicitly stated to the contrary, all contents licensed under the MIT License.