We demonstrate uploading an object to an s3 bucket and adding user-defined metadata, then downloading the object header with the s3api.
We also use S3 browser to look at the headers.
The local server in the demonstration is running PoINT Archival Gateway which turns a tape library into an S3 storage solution.
Command to put or copy object with metadata
aws s3 --endpoint-url=http://SERVER:4080 cp "FILENAME.IMG" s3://bucket01/ --metadata="field=value,field2='Value spaces'"
command to use s3api to retrieve the header-only without downloading the object
aws s3api --endpoint-url=http://SERVER:4080 head-object --bucket bucket01 --key FILENAME.IMG