anomalizer / ngx_aws_auth

nginx module to proxy to authenticated AWS services
BSD 2-Clause "Simplified" License
470 stars 144 forks source link

When I configure nginx with signature calculation S3 cp fails with errors #55

Open anils123 opened 5 years ago

anils123 commented 5 years ago

I configured nginx with the following configuration S3 cp with KMS encryption fails

location / { resolver 8.8.8.8; proxy_pass https://s3.amazonaws.com; proxy_ssl_name s3.amazonaws.com; proxy_pass_request_headers on; client_max_body_size 5G; proxy_send_timeout 600; proxy_read_timeout 600; proxy_intercept_errors on; proxy_next_upstream error timeout http_500 http_502 http_503 http_504; aws_sign; aws_signing_key } I get this error

ResponseParserError: Unable to parse response (mismatched tag: line 6, column 2), invalid XML received:

405 Not Allowed

405 Not Allowed


nginx/1.14.0

upload failed: ./test.txt to s3://..../test.txt An error occurred (405) when calling the PutObject operation: Method Not Allowed Appreciate your advise on this