nicholas.cloud

Using R2 with Granted and the AWS CLI

2026-07-14 // 2 min read // #aws #cloudflare

Recently, I’ve been exploring Cloudflare’s R2 service, an S3-compatible object store.

At home and work, I use Granted to manage my AWS credentials and sessions. It’s a convenient wrapper for switching between multiple accounts without polluting my local environment.

Given R2 is meant to be a (largely) drop-in replacement for S3, I thought I’d do a quick writeup on what’s needed to use R2 credentials with the AWS CLI.

Read more →