Closed sfc-gh-jsander closed 2 years ago
Hello,
I think there is a misunderstood about the project in itself. I'm sorry but it isn't that kind of proxy. S3-Proxy isn't a proxy to the S3 API like a Minio Proxy or something like this. It is a web reverse proxy with S3 storage. That's why you can't use the AWS Cli on S3-Proxy.
Maybe I misunderstood your issue. Feel free to tell me :) .
Regards,
Oxyno-zeta
Well THAT explains a lot. I'm very sorry to have wasted your time.
Sorry to misuse this Feature Request to ask a question. Trying to understand the target and bucket configuration items. Everything I have tried results in “Not Found” errors. I’ve tried a large number of configs, and the current one looks like this (it’s an edit of the sample taking out everything except the bare minimum to see if I can solve this problem):
I’m starting the system like this:
$ sudo docker run -d --name s3-proxy-1 -e AWS_SECRET_ACCESS_KEY='<REDACTED>' -e AWS_ACCESS_KEY_ID='<REDACTED>' -p 8080:8080 -p 9090:9090 -v /home/ubuntu/s3-proxy/conf/NOPE:/proxy/conf oxynozeta/s3-proxy
The requests I’m making look like this from another host in the same network:
And I get these errors in the logs:
I can do the ls directly against the bucket from the config on the host where I’m running the proxy. So I know it’s reachable from that place with those credentials by that name (i.e.
AWS_ACCESS_KEY_ID='<REDACTED>' AWS_SECRET_ACCESS_KEY=<REDACTED> aws s3 ls my-bucket --endpoint-url 'https://<REDACTED>.<REDACTED>.com/'
- is working). I understand this is more than likely a config error on my part, and likely simply me not understanding the relationship between target config and bucket config. I’ve tried everything I can think of to supply different combinations of the values I have without making any progress. I have also tried to configure “normal” S3 buckets (i.e. not hosted on alternate endpoints and instead hosted natively by AWS S3 service), and those fail in exactly the same way. The only difference is I comment out thes3Endpoint
in the config.Thank you for any insight you may be able to offer in advance. And I apologize for the remedial nature of the question.