Using s3cmd with RadosGW
Getting s3cmd wired up to RadosGW #
I walked through setting up radosgw with a proxmox cluster awhile back.
That was fun, and I learned a lot making it work.
Now I’d like to actually USE it y’know?
SO….. What’s next??
๐พ
Well…. what felt the most sensible to me was to start by plumbing s3cmd
up to work with it.
Pre-requisites #
- A functional RadosGW setup.
… โ Check - The desire to use
s3cmd
… โ Check s3cmd
installed
…
Okay Great! lets start there! #
Installing s3cmd #
Ubuntu #
apt-get update
apt-get install s3cmd
MacOS #
brew install s3cmd
Somewhat anticlimactic, huh?
Configuring s3cmd #
This is the config that gets generated:
Obviously there’s a couple changes to make to points3cmd
in the rght direction.
Namely:
access_key
access_token
host_base
host_bucket
As a matter of fact, a barebones .s3cfg
file need only contain the following:
Minimally functional .s3cfg
file #
[default]
access_key = key
secret_key = secret
host_base = s3.example.com
host_bucket = %(bucket)s.s3.example.com
Validation #
Now that we have it set up, lets make sure it works!
~$ s3cmd ls
2023-02-04 23:05 s3://testbucket
2023-02-05 00:01 s3://testbucket2
~$
I’ll dive into setting up s3 webites in a future post… Toodles for now!
โค๏ธ๐บ
๐พ
Back to April Posts...