was what was set.
I tried to set the region through the environment (exported variable) as well but it didn't work. With the aws-cli assume role command the config file is fetched and written as ~/.aws/config
This should be autodetected by the aws client. However I see it is not!
How else do you recommend to set the region? Also, I'm not sure if this is the issue as well ! 2018-04-30T10:10:19,008 DEBUG [appenderator_merge_0] com.amazonaws.thirdparty.apache.http.headers - http-outgoing-4 << Transfer-Encoding: chunked
2018-04-30T10:10:19,008 DEBUG [appenderator_merge_0] com.amazonaws.thirdparty.apache.http.headers - http-outgoing-4 << Server: AmazonS3
2018-04-30T10:10:19,008 DEBUG [appenderator_merge_0] com.amazonaws.thirdparty.apache.http.impl.execchain.MainClientExec - Connection can be kept alive for 60000 MILLISECONDS
2018-04-30T10:10:19,008 DEBUG [appenderator_merge_0] com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser - Parsing XML response document with handler: class com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser$AccessControlListHandler
2018-04-30T10:10:19,008 DEBUG [appenderator_merge_0] com.amazonaws.thirdparty.apache.http.wire - http-outgoing-4 << "23c[\r][\n]"
2018-04-30T10:10:19,008 DEBUG [appenderator_merge_0] com.amazonaws.thirdparty.apache.http.wire - http-outgoing-4 << "<?xml version="1.0" encoding="UTF-8"?>[\n]"
2018-04-30T10:10:19,008 DEBUG [appenderator_merge_0] com.amazonaws.thirdparty.apache.http.wire - http-outgoing-4 << "<AccessControlPolicy xmlns="
http://s3.amazonaws.com/doc/2006-03-01/"><Owner><ID>55a2a99348b42f91bd02796243cb3c4be7fc15c422defec115804ab3c93608e8</ID><DisplayName>bedrock-nonprod-aws</DisplayName></Owner><AccessControlList><Grant><Grantee xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser"><ID>55a2a99348b42f91bd02796243cb3c4be7fc15c422defec115804ab3c93608e8</ID><DisplayName>bedrock-nonprod-aws</DisplayName></Grantee><Permission>FULL_CONTROL</Permission></Grant></AccessControlList></AccessControlPolicy>[\r][\n]"
2018-04-30T10:10:19,008 DEBUG [appenderator_merge_0] com.amazonaws.thirdparty.apache.http.wire - http-outgoing-4 << "0[\r][\n]"
2018-04-30T10:10:19,008 DEBUG [appenderator_merge_0] com.amazonaws.thirdparty.apache.http.wire - http-outgoing-4 << "[\r][\n]"
2018-04-30T10:10:19,009 DEBUG [appenderator_merge_0] com.amazonaws.thirdparty.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection [id: 4][route: {s}->
https://s3.amazonaws.com:443] can be kept alive for 60.0 seconds
2018-04-30T10:10:19,009 DEBUG [appenderator_merge_0] com.amazonaws.thirdparty.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 4][route: {s}->https://s3.amazonaws.com:443][total kept alive: 1; route allocated: 1 of 50; total allocated: 1 of 50]
2018-04-30T10:10:19,009 DEBUG [appenderator_merge_0] com.amazonaws.request - Received successful response: 200, AWS Request ID: F0245F222F551DF8
2018-04-30T10:10:19,009 DEBUG [appenderator_merge_0] com.amazonaws.requestId - x-amzn-RequestId: not available
2018-04-30T10:10:19,009 DEBUG [appenderator_merge_0] com.amazonaws.requestId - AWS Request ID: F0245F222F551DF8
2018-04-30T10:10:19,009 INFO [appenderator_merge_0] io.druid.storage.s3.S3DataSegmentPusher - Pushing [/tmp/druid3309108450302028265index.zip] to bucket[
<Bucket Name Masked>] and key[segments/sample-data/caliper-sample-s3-1field/2017-09-30T00:00:00.000Z_2017-10-01T00:00:00.000Z/2018-04-30T10:01:57.504Z/0/index.zip].
2018-04-30T10:10:19,009 DEBUG [appenderator_merge_0] com.amazonaws.services.s3.internal.Mimetypes - Recognised extension 'zip', mimetype is: 'application/zip'
2018-04-30T10:10:19,009 DEBUG [appenderator_merge_0] com.amazonaws.services.s3.AmazonS3Client -
Bucket region cache doesn't have an entry for <Bucket Name Masked>. Trying to get bucket region from Amazon S3.
.............
2018-04-30T10:10:19,020 DEBUG [appenderator_merge_0] com.amazonaws.services.s3.AmazonS3Client -
Not able to derive region of the <Bucket Name Masked> from the HEAD Bucket requests.
.............
2018-04-30T10:10:19,020 DEBUG [appenderator_merge_0] com.amazonaws.services.s3.AmazonS3Client - Region for
<Bucket Name Masked> is null
2018-04-30T10:10:19,020 DEBUG [appenderator_merge_0] com.amazonaws.request - Sending Request: PUT
https://s3.amazonaws.com <Bucket Name Masked>/segments/sample-data/caliper-sample-s3-1field/2017-09-30T00%3A00%3A00.000Z_2017-10-01T00%3A00%3A00.000Z/2018-04-30T10%3A01%3A57.504Z/0/index.zip Headers: (x-amz-grant-full-control: id="", id="
<Masked>", User-Agent: aws-sdk-java/1.11.199 Linux/4.9.76-3.78.amzn1.x86_64 Java_HotSpot(TM)_64-Bit_Server_VM/25.161-b12 java/1.8.0_161, amz-sdk-invocation-id: 2048b4ca-c713-1757-1fd2-49ef46e3a3a5, Content-Length: 37654, Content-MD5: 28eKWEVL6KllzpPX/Tkg5A==, Content-Type: application/zip, )
2018-04-30T10:10:19,020 DEBUG [appenderator_merge_0] com.amazonaws.auth.AWS4Signer - AWS4 Canonical Request: '"PUT
<Bucket Name Masked>segments/sample-data/caliper-sample-s3-1field/2017-09-30T00%3A00%3A00.000Z_2017-10-01T00%3A00%3A00.000Z/2018-04-30T10%3A01%3A57.504Z/0/index.zip
amz-sdk-invocation-id:2048b4ca-c713-1757-1fd2-49ef46e3a3a5
amz-sdk-retry:0/0/500
content-length:37654
content-md5:28eKWEVL6KllzpPX/Tkg5A==
content-type:application/zip
host:
s3.amazonaws.comuser-agent:aws-sdk-java/1.11.199 Linux/4.9.76-3.78.amzn1.x86_64 Java_HotSpot(TM)_64-Bit_Server_VM/25.161-b12 java/1.8.0_161
x-amz-content-sha256:UNSIGNED-PAYLOAD
x-amz-date:20180430T101019Z
x-amz-grant-full-control:id="
<Masked>", id="
<Masked>"
x-amz-security-token:FQoDYXdzEOv/....................................
<Masked>amz-sdk-invocation-id;amz-sdk-retry;content-length;content-md5;content-type;host;user-agent;x-amz-content-sha256;x-amz-date;x-amz-grant-full-control;x-amz-security-token
UNSIGNED-PAYLOAD"
2018-04-30T10:10:19,020 DEBUG [appenderator_merge_0] com.amazonaws.auth.AWS4Signer - AWS4 String to Sign: '"AWS4-HMAC-SHA256
20180430T101019Z
20180430/us-east-1/s3/aws4_request