Skip to content

Lfs S3 Account

If your team is global, replicate your LFS bucket to another region. This reduces latency for git clone and git lfs fetch.

The "LFS S3 Account" experience depends heavily on how you implement it: lfs s3 account

Setup Difficulty: Intermediate to Advanced. Maintenance: Low (mostly "set and forget" once IAM roles are correct). If your team is global, replicate your LFS

After compiling a large package like GCC or LLVM: Setup Difficulty: Intermediate to Advanced

tar -czf gcc-12.2.0-lfs-x86_64.tar.gz -C /usr .
aws s3 cp gcc-12.2.0-lfs-x86_64.tar.gz s3://lfs-binaries-mybucket/gcc/

On another build machine:

aws s3 cp s3://lfs-binaries-mybucket/gcc/gcc-12.2.0-lfs-x86_64.tar.gz -
tar -xzf - -C /

You run a lightweight server (like Nginx or a custom Go/NodeJS application) that sits between your Git client and S3.