Wanted to follow your Knowledge Base tutorial on setting the DreamObjects CORS policy (5 years old), which suggests using S3cmd. Got ready to install S3cmd, only to learn from that tutorial, one should instead use the pre-installed (and currently developed) AWS CLI tool. Great… cofigured it as suggested and it works with your example commands. Now, how do I get/set/put a CORS policy for a bucket using this tool??
It would be super helpful if these KB articles could be updated once the suggested practices change. This whole objects realm is so new to me, need as much tutorial guidance as possible.
Nevertheless, have been researching the official AWS CLI docs for workflow on put-bucket-cors / get-bucket-cors – but definitely need help for the DreamObjects unique workflow.
Fumbling around, I got as close as learning I need to use the
mediastore function, then ran into the obsticle of what exactly to enter for
--container-name (guessing my bucket name) – tried that (also just to list the containers):
aws --endpoint-url https://objects-us-east-1.dream.io mediastore list-containers
but both receive an error:
You must specify a region. You can also configure your region by running "aws configure".
On the DH AWS CLI install/configure tutorial, it said to just hit enter and leave that blank… hmm any help would be much appreciated.
End goal is uploading/serving videos as m3u8 and ts files for HLS streaming (with private setting of object files) – this tutorial suggested it’s like a CORS issue causing the issue of accessing each file from the playlist.