Hello there. I’m excited to try DVC’s features but I’m stuck with a basic problem in S3. Ideally, I’d like to push to a private S3 bucket, which I could do with aws-vault. Before doing that, I wanted to check how that would work in a public bucket. But when I try to push to a public S3, I get:
$ dvc remote list
storage s3://ml-ci
https3 https://ml-ci.s3.amazonaws.com/
$ dvc push -r storage
ERROR: unexpected error - An error occurred (403) when calling the HeadObject operation: Forbidden
So I thought I’d try a suggestion from another thread on this forum and add a HTTPS remote endpoint instead (though I know it was suggested as a read-only solution):
$ dvc push -r https3
ERROR: failed to upload '.dvc/cache/a3/04afb96060aad9017xxxx' to 'https://ml-ci.s3.amazonaws.com/a3/04afb96060aad9017xxxx' - could not perform a POST request
ERROR: failed to push data to the cloud - 1 files failed to upload
What am I doing incorrectly here with remote setup? Is private + aws-vault the only option? I’d really appreciate some help, thank you!
I’ve found the answer on an old thread (with a slight modification of the credential path):
dvc remote modify myremote credentialpath ~/.aws/credentials
dvc remote modify myremote profile profile-name
Thanks so much @jorgeorpinel! I looked at both the issues and the comments you left on the post (which I’ll respond to there). The issues make sense and I look forward to those enhancements - thanks again.