Hi Team,
I have an issue when my serverver try to communicate with aws s3 strorage using aws cli, I have HAproxy as reverse proxy to aws s3 backend, here is the command output:
aws --endpoint-url http://haproxy-fqdn s3 ls
An error occurred (SignatureDoesNotMatch) when calling the ListBuckets operation: The request signature we calculated does not match the signature you provided.
Here is my HAproxy config:
cat /etc/haproxy/haproxy.cfg
global
log 127.0.0.1:514 local0
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 4000
user haproxy
group haproxy
daemon
stats socket /var/lib/haproxy/stats
defaults
mode http
log global
option forwardfor
retries 3
timeout http-request 10s
timeout queue 1m
timeout connect 10s
timeout client 1m
timeout server 1m
timeout http-keep-alive 10s
timeout check 10s
maxconn 3000
frontend http-in
mode http
bind *:80
default_backend s3
backend s3
http-request set-header Host s3-host
server s3 s3-host:443 check ssl verify none
The aws_access_key_id and aws_secret_access_key were already set in .aws/credentials
Please advise.
Best Regards.