I am testing AWS C++ SDK. I have set my region (eu-central-1) as a environment variable and in ~/.aws/config like it is said here : http://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/setup-credentials.html
I am testing this example code provided by AWS : https://github.com/awsdocs/aws-doc-sdk-examples/blob/master/cpp/example_code/s3/put_object.cpp
The problem is that I receive this error :
ExceptionName: AuthorizationHeaderMalformed Message: The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'eu-central-1'
Why it doesn't use the region eu-central-1 ?