examples/rgw/golang/object-upload/README.md
This directory contains Golang code examples on how to upload an object to an S3 bucket running on a Ceph RGW cluster.
Linux machine running an RGW Ceph cluster. Preferably started with the OSD=1 MON=1 MDS=0 MGR=0 RGW=1 ../src/vstart.sh --debug --new command.
Go installed on the Linux machine.
aws --endpoint-url http://localhost:8000 s3 mb s3://sample-bucket
go mod init examples/object-upload/v2
go get github.com/aws/aws-sdk-go
go mod tidy
go run object-upload.go -b sample-bucket -f fortuna.txt on the terminal window to test out object upload to Ceph RGW cluster.