A Terraform state backend using the http, backed by Cloudflare Workers and R2, so it is cheap to run. Oh, and it supports locking πŸ”’. The original c

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-09-05 18:00:07

A Terraform state backend using the http, backed by Cloudflare Workers and R2, so it is cheap to run. Oh, and it supports locking πŸ”’.

The original code was moved from cmackenzie1/holster to its own repository. You can read about the original implementation here.

This Worker is exposed to the public internet, it is YOUR responsibility to secure it. The HTTP backend for terraform supports basic auth and/or mTLS, so pick one (or both) and use it!

Sometimes the default backends don't cut it. For me, I wanted a backend that supported locking that used Cloudflare R2 for storage.

The existing S3 backend doesn't support locking without DynamoDB, which is an additional cost. This Worker is a cheaper alternative, and it's fun to build things!

Cloudflare Workers and R2 are billed based on usage, with a very generous free tier. You can check the pricing for Workers here and R2 here. Overall, this can be done for very cheap, or even free :)

Leave a Comment