How to switch between S3 buckets quickly
From the AWS CLI: configure named profiles in ~/.aws/credentials and switch with AWS_PROFILE — the right pattern for scripts. From the AWS console: navigate per-account and re-authenticate. From S3 Viewer: hit Cmd-K and fuzzy-match any bucket on any connected provider — across AWS accounts, across Cloudflare R2, MinIO, B2, all in one switcher.
Step-by-step.
- 01
In S3 Viewer: press Cmd-K
A bucket switcher opens with fuzzy matching across every bucket on every connected provider — AWS, R2, MinIO, anything you've wired up. - 02
Type any part of the name
Match by bucket name or provider. HitEnterto jump. No re-authenticating, no profile switching. - 03
AWS CLI: named profiles
Configure profiles in~/.aws/credentialsand switch withAWS_PROFILE. The right pattern for scripts and single-shell workflows.AWS_PROFILE=acme aws s3 ls s3://bucket-name - 04
AWS CLI for R2/B2/MinIO: --endpoint-url
For Cloudflare R2, Backblaze B2, or MinIO, pass the endpoint explicitly. The credentials format is the same; only the URL changes.aws s3 ls --profile r2 \ --endpoint-url https://<account>.r2.cloudflarestorage.com - 05
Across multiple AWS accounts
Add each account's credentials separately. In S3 Viewer they show up grouped by account in the sidebar; in the CLI they're separate profiles.
What's actually happening.
The AWS CLI scopes credentials per profile (~/.aws/credentials) and you switch by setting AWS_PROFILE. That's the right pattern for scripts and single-shell workflows. For interactive sessions where you bounce between many buckets, a Cmd-K switcher is faster — S3 Viewer keeps every connected bucket loaded and routes each click to the right signer behind the scenes, so jumping is just fuzzy search over your bucket list.
Common questions.
What's the fastest way to switch between AWS S3 buckets?
Can I have buckets from multiple AWS accounts open at once?
How do I switch between AWS profiles in the CLI?
Can I jump between an AWS bucket and a Cloudflare R2 bucket?
Skip the CLI. Try it in the browser.
S3 Viewer turns the steps above into a single click. Open source, self-hostable, free for personal use.
Why teams pick this
More how-tos
View S3 + R2 together
One credential per provider, one sidebar, Cmd-K to jump, and right-click to copy across clouds.
Search across buckets
How to actually search S3 with Tab autocomplete, and when S3 Inventory + Athena is the right pattern.
Invite a teammate
Skip per-person IAM users for human collaboration. Email invite, per-bucket role, one-click revoke.