Running aws cp with --debug
yeilds the following output.
It looks like its doing an initial HEAD request, possibly to get back metadata so that it can then pass the following header to the GET request 'x-amz-server-side-encryption-bucket-key-enabled': 'true'
2022-07-07 09:08:08,637 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=HEAD, url=https://MY_PREFIX-us-west-2-MY_ACCOUNT.s3.ap-southeast-2.amazonaws.com/model_repository/titanic_ensemble/config.pbtxt, headers={'User-Agent': b'aws-cli/2.4.27 Python/3.8.8 Darwin/21.4.0 exe/x86_64 prompt/off command/s3.cp', 'X-Amz-Date': b'20220706T230808Z', 'X-Amz-Content-SHA256': b'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'Authorization': b'AWS4-HMAC-SHA256 Credential=AKIAW44YBVKOQKIQBFYF/20220706/ap-southeast-2/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=40df0bd1e72e56bdddcc5857ea642be1fd7b2518299aa93885f765eb01069b52'}>
2022-07-07 09:08:08,638 - MainThread - botocore.httpsession - DEBUG - Certificate path: /usr/local/aws-cli/awscli/botocore/cacert.pem
2022-07-07 09:08:08,638 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): MY_PREFIX-us-west-2-MY_ACCOUNT.s3.ap-southeast-2.amazonaws.com:443
2022-07-07 09:08:08,733 - MainThread - urllib3.connectionpool - DEBUG - https://MY_PREFIX-us-west-2-MY_ACCOUNT.s3.ap-southeast-2.amazonaws.com:443 "HEAD /model_repository/titanic_ensemble/config.pbtxt HTTP/1.1" 301 0
2022-07-07 09:08:08,734 - MainThread - botocore.parsers - DEBUG - Response headers: {'x-amz-bucket-region': 'us-west-2', 'x-amz-request-id': 'PET4V4E7TYJGRF3Y', 'x-amz-id-2': 'YwM0GbSgQEz+WkDohVBklkbDPX9VRGAcvlCe6iag/BgwxWaqWmUGrpaThWOGS95ynz1ahvOeAWU=', 'Content-Type': 'application/xml', 'Date': 'Wed, 06 Jul 2022 23:08:08 GMT', 'Server': 'AmazonS3'}
2022-07-07 09:08:08,734 - MainThread - botocore.parsers - DEBUG - Response body:
b''
2022-07-07 09:08:08,735 - MainThread - botocore.hooks - DEBUG - Event needs-retry.s3.HeadObject: calling handler <bound method RetryHandler.needs_retry of <botocore.retries.standard.RetryHandler object at 0x7fd5c0c445e0>>
2022-07-07 09:08:08,736 - MainThread - botocore.retries.standard - DEBUG - Not retrying request.
2022-07-07 09:08:08,736 - MainThread - botocore.hooks - DEBUG - Event needs-retry.s3.HeadObject: calling handler <bound method S3RegionRedirector.redirect_from_error of <botocore.utils.S3RegionRedirector object at 0x7fd5c0c44640>>
2022-07-07 09:08:08,736 - MainThread - botocore.utils - DEBUG - S3 client configured for region ap-southeast-2 but the bucket MY_PREFIX-us-west-2-MY_ACCOUNT is in region us-west-2; Please configure the proper region to avoid multiple unnecessary redirects and signing attempts.
2022-07-07 09:08:08,736 - MainThread - botocore.utils - DEBUG - Updating URI from https://s3.ap-southeast-2.amazonaws.com/MY_PREFIX-us-west-2-MY_ACCOUNT/model_repository/titanic_ensemble/config.pbtxt to https://s3.us-west-2.amazonaws.com/MY_PREFIX-us-west-2-MY_ACCOUNT/model_repository/titanic_ensemble/config.pbtxt
2022-07-07 09:08:08,736 - MainThread - botocore.endpoint - DEBUG - Response received to retry, sleeping for 0 seconds
2022-07-07 09:08:08,736 - MainThread - botocore.hooks - DEBUG - Event request-created.s3.HeadObject: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7fd5a0554a90>>
2022-07-07 09:08:08,736 - MainThread - botocore.hooks - DEBUG - Event choose-signer.s3.HeadObject: calling handler <bound method S3EndpointSetter.set_signer of <botocore.utils.S3EndpointSetter object at 0x7fd5c0c44790>>
2022-07-07 09:08:08,736 - MainThread - botocore.hooks - DEBUG - Event choose-signer.s3.HeadObject: calling handler <function set_operation_specific_signer at 0x7fd5a019b940>
2022-07-07 09:08:08,736 - MainThread - botocore.hooks - DEBUG - Event before-sign.s3.HeadObject: calling handler <bound method S3EndpointSetter.set_endpoint of <botocore.utils.S3EndpointSetter object at 0x7fd5c0c44790>>
2022-07-07 09:08:08,736 - MainThread - botocore.utils - DEBUG - Checking for DNS compatible bucket for: https://s3.us-west-2.amazonaws.com/MY_PREFIX-us-west-2-MY_ACCOUNT/model_repository/titanic_ensemble/config.pbtxt
2022-07-07 09:08:08,736 - MainThread - botocore.utils - DEBUG - URI updated to: https://MY_PREFIX-us-west-2-MY_ACCOUNT.s3.us-west-2.amazonaws.com/model_repository/titanic_ensemble/config.pbtxt
2022-07-07 09:08:08,736 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2022-07-07 09:08:08,736 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
HEAD
/model_repository/titanic_ensemble/config.pbtxt
host:MY_PREFIX-us-west-2-MY_ACCOUNT.s3.us-west-2.amazonaws.com
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20220706T230808Z
host;x-amz-content-sha256;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
2022-07-07 09:08:08,736 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20220706T230808Z
20220706/us-west-2/s3/aws4_request
cfb3aa4f1ad58518d11bf351e30059845b4e7fb666e886e2acf2e13234c25940
2022-07-07 09:08:08,737 - MainThread - botocore.auth - DEBUG - Signature:
47d8235f1b50083780b17a1f4b0886782178a5fc9b2b54110dc427c51faad5fb
2022-07-07 09:08:08,737 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=HEAD, url=https://MY_PREFIX-us-west-2-MY_ACCOUNT.s3.us-west-2.amazonaws.com/model_repository/titanic_ensemble/config.pbtxt, headers={'User-Agent': b'aws-cli/2.4.27 Python/3.8.8 Darwin/21.4.0 exe/x86_64 prompt/off command/s3.cp', 'X-Amz-Date': b'20220706T230808Z', 'X-Amz-Content-SHA256': b'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'Authorization': b'AWS4-HMAC-SHA256 Credential=AKIAW44YBVKOQKIQBFYF/20220706/us-west-2/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=47d8235f1b50083780b17a1f4b0886782178a5fc9b2b54110dc427c51faad5fb'}>
2022-07-07 09:08:08,737 - MainThread - botocore.httpsession - DEBUG - Certificate path: /usr/local/aws-cli/awscli/botocore/cacert.pem
2022-07-07 09:08:08,737 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): MY_PREFIX-us-west-2-MY_ACCOUNT.s3.us-west-2.amazonaws.com:443
2022-07-07 09:08:09,608 - MainThread - urllib3.connectionpool - DEBUG - https://MY_PREFIX-us-west-2-MY_ACCOUNT.s3.us-west-2.amazonaws.com:443 "HEAD /model_repository/titanic_ensemble/config.pbtxt HTTP/1.1" 200 0
2022-07-07 09:08:09,609 - MainThread - botocore.parsers - DEBUG - Response headers: {'x-amz-id-2': '6LA8592CjGgNwn1MrEp+zftcZN7peifi7SXZP8h4lkh8eIa8dpxK64WKThSOoVfiUn0C2Zcjhy4=', 'x-amz-request-id': '07WEEPAZ4DBJ2AJD', 'Date': 'Wed, 06 Jul 2022 23:08:10 GMT', 'Last-Modified': 'Wed, 06 Jul 2022 02:22:26 GMT', 'ETag': '"cbf35447b8e32dda8db30ceb05292937"', 'x-amz-server-side-encryption': 'aws:kms', 'x-amz-server-side-encryption-aws-kms-key-id': 'arn:aws:kms:us-west-2:MY_ACCOUNT:key/f6fbd5c7-ab1b-4eb6-a769-ea789c24125f', 'x-amz-server-side-encryption-bucket-key-enabled': 'true', 'x-amz-version-id': 'zmWsxJtj5EEQmrb8xr2bzzC.IRT4OgkR', 'Accept-Ranges': 'bytes', 'Content-Type': 'binary/octet-stream', 'Server': 'AmazonS3', 'Content-Length': '3606'}
2022-07-07 09:08:09,609 - MainThread - botocore.parsers - DEBUG - Response body:
b''
2022-07-07 09:08:09,611 - MainThread - botocore.hooks - DEBUG - Event needs-retry.s3.HeadObject: calling handler <bound method RetryHandler.needs_retry of <botocore.retries.standard.RetryHandler object at 0x7fd5c0c445e0>>
2022-07-07 09:08:09,611 - MainThread - botocore.retries.standard - DEBUG - Not retrying request.
2022-07-07 09:08:09,611 - MainThread - botocore.hooks - DEBUG - Event needs-retry.s3.HeadObject: calling handler <bound method S3RegionRedirector.redirect_from_error of <botocore.utils.S3RegionRedirector object at 0x7fd5c0c44640>>
2022-07-07 09:08:09,611 - MainThread - botocore.utils - DEBUG - S3 request was previously redirected, not redirecting.
2022-07-07 09:08:09,611 - MainThread - botocore.hooks - DEBUG - Event after-call.s3.HeadObject: calling handler <function enhance_error_msg at 0x7fd5c0a188b0>
2022-07-07 09:08:09,612 - MainThread - botocore.hooks - DEBUG - Event after-call.s3.HeadObject: calling handler <bound method RetryQuotaChecker.release_retry_quota of <botocore.retries.standard.RetryQuotaChecker object at 0x7fd5c0c44130>>
2022-07-07 09:08:09,613 - MainThread - s3transfer.utils - DEBUG - Acquiring 0
2022-07-07 09:08:09,613 - ThreadPoolExecutor-1_0 - s3transfer.tasks - DEBUG - DownloadSubmissionTask(transfer_id=0, {'transfer_future': <s3transfer.futures.TransferFuture object at 0x7fd5a05ff910>}) about to wait for the following futures []
2022-07-07 09:08:09,613 - ThreadPoolExecutor-1_0 - s3transfer.tasks - DEBUG - DownloadSubmissionTask(transfer_id=0, {'transfer_future': <s3transfer.futures.TransferFuture object at 0x7fd5a05ff910>}) done waiting for dependent futures
2022-07-07 09:08:09,613 - ThreadPoolExecutor-1_0 - s3transfer.tasks - DEBUG - Executing task DownloadSubmissionTask(transfer_id=0, {'transfer_future': <s3transfer.futures.TransferFuture object at 0x7fd5a05ff910>}) with kwargs {'client': <botocore.client.S3 object at 0x7fd5a0570490>, 'config': <s3transfer.manager.TransferConfig object at 0x7fd5a05ae220>, 'osutil': <s3transfer.utils.OSUtils object at 0x7fd5a05ae2b0>, 'request_executor': <s3transfer.futures.BoundedExecutor object at 0x7fd5a05ae4f0>, 'transfer_future': <s3transfer.futures.TransferFuture object at 0x7fd5a05ff910>, 'io_executor': <s3transfer.futures.BoundedExecutor object at 0x7fd5a05aeb50>}
2022-07-07 09:08:09,613 - ThreadPoolExecutor-1_0 - s3transfer.futures - DEBUG - Submitting task ImmediatelyWriteIOGetObjectTask(transfer_id=0, {'bucket': 'MY_PREFIX-us-west-2-MY_ACCOUNT', 'key': 'model_repository/titanic_ensemble/config.pbtxt', 'extra_args': {}}) to executor <s3transfer.futures.BoundedExecutor object at 0x7fd5a05ae4f0> for transfer request: 0.
2022-07-07 09:08:09,614 - ThreadPoolExecutor-1_0 - s3transfer.utils - DEBUG - Acquiring 0
2022-07-07 09:08:09,614 - ThreadPoolExecutor-0_0 - s3transfer.tasks - DEBUG - ImmediatelyWriteIOGetObjectTask(transfer_id=0, {'bucket': 'MY_PREFIX-us-west-2-MY_ACCOUNT', 'key': 'model_repository/titanic_ensemble/config.pbtxt', 'extra_args': {}}) about to wait for the following futures []
2022-07-07 09:08:09,614 - ThreadPoolExecutor-1_0 - s3transfer.utils - DEBUG - Releasing acquire 0/None
2022-07-07 09:08:09,614 - ThreadPoolExecutor-0_0 - s3transfer.tasks - DEBUG - ImmediatelyWriteIOGetObjectTask(transfer_id=0, {'bucket': 'MY_PREFIX-us-west-2-MY_ACCOUNT', 'key': 'model_repository/titanic_ensemble/config.pbtxt', 'extra_args': {}}) done waiting for dependent futures
2022-07-07 09:08:09,614 - ThreadPoolExecutor-0_0 - s3transfer.tasks - DEBUG - Executing task ImmediatelyWriteIOGetObjectTask(transfer_id=0, {'bucket': 'MY_PREFIX-us-west-2-MY_ACCOUNT', 'key': 'model_repository/titanic_ensemble/config.pbtxt', 'extra_args': {}}) with kwargs {'client': <botocore.client.S3 object at 0x7fd5a0570490>, 'bucket': 'MY_PREFIX-us-west-2-MY_ACCOUNT', 'key': 'model_repository/titanic_ensemble/config.pbtxt', 'fileobj': <s3transfer.utils.DeferredOpenFile object at 0x7fd5a05ffbe0>, 'extra_args': {}, 'callbacks': [functools.partial(<bound method BaseSubscriber.on_progress of <awscli.customizations.s3.subscribers.ProvideSizeSubscriber object at 0x7fd5a05cbfa0>>, future=<s3transfer.futures.TransferFuture object at 0x7fd5a05ff910>), functools.partial(<bound method BaseSubscriber.on_progress of <awscli.customizations.s3.results.QueuedResultSubscriber object at 0x7fd5a05cb970>>, future=<s3transfer.futures.TransferFuture object at 0x7fd5a05ff910>), functools.partial(<bound method BaseSubscriber.on_progress of <awscli.customizations.s3.subscribers.DirectoryCreatorSubscriber object at 0x7fd5a05cbbe0>>, future=<s3transfer.futures.TransferFuture object at 0x7fd5a05ff910>), functools.partial(<bound method BaseSubscriber.on_progress of <awscli.customizations.s3.subscribers.ProvideLastModifiedTimeSubscriber object at 0x7fd5a05cb760>>, future=<s3transfer.futures.TransferFuture object at 0x7fd5a05ff910>), functools.partial(<bound method ProgressResultSubscriber.on_progress of <awscli.customizations.s3.results.ProgressResultSubscriber object at 0x7fd5a05cbfd0>>, future=<s3transfer.futures.TransferFuture object at 0x7fd5a05ff910>), functools.partial(<bound method BaseSubscriber.on_progress of <awscli.customizations.s3.results.DoneResultSubscriber object at 0x7fd5a05cbeb0>>, future=<s3transfer.futures.TransferFuture object at 0x7fd5a05ff910>)], 'max_attempts': 5, 'download_output_manager': <s3transfer.download.DownloadFilenameOutputManager object at 0x7fd5a05ffc10>, 'io_chunksize': 262144, 'bandwidth_limiter': None}
2022-07-07 09:08:09,614 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event provide-client-params.s3.GetObject: calling handler <function base64_decode_input_blobs at 0x7fd5c0a8b940>
2022-07-07 09:08:09,614 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event before-parameter-build.s3.GetObject: calling handler <function sse_md5 at 0x7fd5a019bca0>
2022-07-07 09:08:09,614 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event before-parameter-build.s3.GetObject: calling handler <function validate_bucket_name at 0x7fd5a019bc10>
2022-07-07 09:08:09,614 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event before-parameter-build.s3.GetObject: calling handler <bound method S3RegionRedirector.redirect_from_cache of <botocore.utils.S3RegionRedirector object at 0x7fd5a05ae070>>
2022-07-07 09:08:09,614 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event before-parameter-build.s3.GetObject: calling handler <bound method S3ArnParamHandler.handle_arn of <botocore.utils.S3ArnParamHandler object at 0x7fd5a05ae130>>
2022-07-07 09:08:09,614 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event before-parameter-build.s3.GetObject: calling handler <function generate_idempotent_uuid at 0x7fd5a019ba60>
2022-07-07 09:08:09,615 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event before-call.s3.GetObject: calling handler <function add_expect_header at 0x7fd5a019bf70>
2022-07-07 09:08:09,615 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event before-call.s3.GetObject: calling handler <bound method S3RegionRedirector.set_request_url of <botocore.utils.S3RegionRedirector object at 0x7fd5a05ae070>>
2022-07-07 09:08:09,615 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event before-call.s3.GetObject: calling handler <function inject_api_version_header_if_needed at 0x7fd5a01a1310>
2022-07-07 09:08:09,615 - ThreadPoolExecutor-0_0 - botocore.endpoint - DEBUG - Making request for OperationModel(name=GetObject) with params: {'url_path': '/MY_PREFIX-us-west-2-MY_ACCOUNT/model_repository/titanic_ensemble/config.pbtxt', 'query_string': {}, 'method': 'GET', 'headers': {'User-Agent': 'aws-cli/2.4.27 Python/3.8.8 Darwin/21.4.0 exe/x86_64 prompt/off command/s3.cp'}, 'body': b'', 'url': 'https://s3.ap-southeast-2.amazonaws.com/MY_PREFIX-us-west-2-MY_ACCOUNT/model_repository/titanic_ensemble/config.pbtxt', 'context': {'client_region': 'ap-southeast-2', 'client_config': <botocore.config.Config object at 0x7fd5a0570550>, 'has_streaming_input': False, 'auth_type': None, 'signing': {'bucket': 'MY_PREFIX-us-west-2-MY_ACCOUNT'}}}
2022-07-07 09:08:09,615 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event request-created.s3.GetObject: calling handler <function signal_not_transferring at 0x7fd5c07c2040>
2022-07-07 09:08:09,615 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event request-created.s3.GetObject: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7fd5a05704f0>>
2022-07-07 09:08:09,615 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event choose-signer.s3.GetObject: calling handler <bound method S3EndpointSetter.set_signer of <botocore.utils.S3EndpointSetter object at 0x7fd5a05ae1c0>>
2022-07-07 09:08:09,615 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event choose-signer.s3.GetObject: calling handler <function set_operation_specific_signer at 0x7fd5a019b940>
2022-07-07 09:08:09,615 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event before-sign.s3.GetObject: calling handler <bound method S3EndpointSetter.set_endpoint of <botocore.utils.S3EndpointSetter object at 0x7fd5a05ae1c0>>
2022-07-07 09:08:09,615 - ThreadPoolExecutor-0_0 - botocore.utils - DEBUG - Defaulting to S3 virtual host style addressing with path style addressing fallback.
2022-07-07 09:08:09,615 - ThreadPoolExecutor-0_0 - botocore.utils - DEBUG - Checking for DNS compatible bucket for: https://s3.ap-southeast-2.amazonaws.com/MY_PREFIX-us-west-2-MY_ACCOUNT/model_repository/titanic_ensemble/config.pbtxt
2022-07-07 09:08:09,615 - ThreadPoolExecutor-0_0 - botocore.utils - DEBUG - URI updated to: https://MY_PREFIX-us-west-2-MY_ACCOUNT.s3.ap-southeast-2.amazonaws.com/model_repository/titanic_ensemble/config.pbtxt
2022-07-07 09:08:09,616 - ThreadPoolExecutor-0_0 - botocore.auth - DEBUG - Calculating signature using v4 auth.
2022-07-07 09:08:09,616 - ThreadPoolExecutor-0_0 - botocore.auth - DEBUG - CanonicalRequest:
GET
/model_repository/titanic_ensemble/config.pbtxt
host:MY_PREFIX-us-west-2-MY_ACCOUNT.s3.ap-southeast-2.amazonaws.com
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20220706T230809Z
host;x-amz-content-sha256;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
2022-07-07 09:08:09,616 - ThreadPoolExecutor-0_0 - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20220706T230809Z
20220706/ap-southeast-2/s3/aws4_request
f7f8edb844f1643060e430ee64539e89d8abcd74ac791b5cb869167242b731ec
2022-07-07 09:08:09,616 - ThreadPoolExecutor-0_0 - botocore.auth - DEBUG - Signature:
f6856f437d21e2b4a7440d811f653b469fe31190f21f9f66024e7116d2d77013
2022-07-07 09:08:09,616 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event request-created.s3.GetObject: calling handler <function signal_transferring at 0x7fd5c07c20d0>
2022-07-07 09:08:09,616 - ThreadPoolExecutor-0_0 - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=True, method=GET, url=https://MY_PREFIX-us-west-2-MY_ACCOUNT.s3.ap-southeast-2.amazonaws.com/model_repository/titanic_ensemble/config.pbtxt, headers={'User-Agent': b'aws-cli/2.4.27 Python/3.8.8 Darwin/21.4.0 exe/x86_64 prompt/off command/s3.cp', 'X-Amz-Date': b'20220706T230809Z', 'X-Amz-Content-SHA256': b'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'Authorization': b'AWS4-HMAC-SHA256 Credential=AKIAW44YBVKOQKIQBFYF/20220706/ap-southeast-2/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=f6856f437d21e2b4a7440d811f653b469fe31190f21f9f66024e7116d2d77013'}>
2022-07-07 09:08:09,616 - ThreadPoolExecutor-0_0 - botocore.httpsession - DEBUG - Certificate path: /usr/local/aws-cli/awscli/botocore/cacert.pem
2022-07-07 09:08:09,616 - ThreadPoolExecutor-0_0 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): MY_PREFIX-us-west-2-MY_ACCOUNT.s3.ap-southeast-2.amazonaws.com:443
2022-07-07 09:08:09,709 - ThreadPoolExecutor-0_0 - urllib3.connectionpool - DEBUG - https://MY_PREFIX-us-west-2-MY_ACCOUNT.s3.ap-southeast-2.amazonaws.com:443 "GET /model_repository/titanic_ensemble/config.pbtxt HTTP/1.1" 301 None
2022-07-07 09:08:09,710 - ThreadPoolExecutor-0_0 - botocore.parsers - DEBUG - Response headers: {'x-amz-bucket-region': 'us-west-2', 'x-amz-request-id': '07WCTBJFKMZ49VR3', 'x-amz-id-2': 'joU1uuWInUK7A38M6GZuw9LqYelPjar/mZdc9RTRNzzOb7L0jjyqCfUSNLPsjZD2RyowqRXXbos=', 'Content-Type': 'application/xml', 'Transfer-Encoding': 'chunked', 'Date': 'Wed, 06 Jul 2022 23:08:09 GMT', 'Server': 'AmazonS3'}
2022-07-07 09:08:09,710 - ThreadPoolExecutor-0_0 - botocore.parsers - DEBUG - Response body:
b'<?xml version="1.0" encoding="UTF-8"?>\n<Error><Code>PermanentRedirect</Code><Message>The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.</Message><Endpoint>MY_PREFIX-us-west-2-MY_ACCOUNT.s3-us-west-2.amazonaws.com</Endpoint><Bucket>MY_PREFIX-us-west-2-MY_ACCOUNT</Bucket><RequestId>07WCTBJFKMZ49VR3</RequestId><HostId>joU1uuWInUK7A38M6GZuw9LqYelPjar/mZdc9RTRNzzOb7L0jjyqCfUSNLPsjZD2RyowqRXXbos=</HostId></Error>'
2022-07-07 09:08:09,714 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event needs-retry.s3.GetObject: calling handler <bound method RetryHandler.needs_retry of <botocore.retries.standard.RetryHandler object at 0x7fd5a0570fd0>>
2022-07-07 09:08:09,715 - ThreadPoolExecutor-0_0 - botocore.retries.standard - DEBUG - Not retrying request.
2022-07-07 09:08:09,715 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event needs-retry.s3.GetObject: calling handler <bound method S3RegionRedirector.redirect_from_error of <botocore.utils.S3RegionRedirector object at 0x7fd5a05ae070>>
2022-07-07 09:08:09,715 - ThreadPoolExecutor-0_0 - botocore.utils - DEBUG - S3 client configured for region ap-southeast-2 but the bucket MY_PREFIX-us-west-2-MY_ACCOUNT is in region us-west-2; Please configure the proper region to avoid multiple unnecessary redirects and signing attempts.
2022-07-07 09:08:09,715 - ThreadPoolExecutor-0_0 - botocore.utils - DEBUG - Updating URI from https://s3.ap-southeast-2.amazonaws.com/MY_PREFIX-us-west-2-MY_ACCOUNT/model_repository/titanic_ensemble/config.pbtxt to https://s3.us-west-2.amazonaws.com/MY_PREFIX-us-west-2-MY_ACCOUNT/model_repository/titanic_ensemble/config.pbtxt
2022-07-07 09:08:09,715 - ThreadPoolExecutor-0_0 - botocore.endpoint - DEBUG - Response received to retry, sleeping for 0 seconds
2022-07-07 09:08:09,715 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event request-created.s3.GetObject: calling handler <function signal_not_transferring at 0x7fd5c07c2040>
2022-07-07 09:08:09,715 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event request-created.s3.GetObject: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7fd5a05704f0>>
2022-07-07 09:08:09,715 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event choose-signer.s3.GetObject: calling handler <bound method S3EndpointSetter.set_signer of <botocore.utils.S3EndpointSetter object at 0x7fd5a05ae1c0>>
2022-07-07 09:08:09,715 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event choose-signer.s3.GetObject: calling handler <function set_operation_specific_signer at 0x7fd5a019b940>
2022-07-07 09:08:09,715 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event before-sign.s3.GetObject: calling handler <bound method S3EndpointSetter.set_endpoint of <botocore.utils.S3EndpointSetter object at 0x7fd5a05ae1c0>>
2022-07-07 09:08:09,715 - ThreadPoolExecutor-0_0 - botocore.utils - DEBUG - Checking for DNS compatible bucket for: https://s3.us-west-2.amazonaws.com/MY_PREFIX-us-west-2-MY_ACCOUNT/model_repository/titanic_ensemble/config.pbtxt
2022-07-07 09:08:09,715 - ThreadPoolExecutor-0_0 - botocore.utils - DEBUG - URI updated to: https://MY_PREFIX-us-west-2-MY_ACCOUNT.s3.us-west-2.amazonaws.com/model_repository/titanic_ensemble/config.pbtxt
2022-07-07 09:08:09,715 - ThreadPoolExecutor-0_0 - botocore.auth - DEBUG - Calculating signature using v4 auth.
2022-07-07 09:08:09,715 - ThreadPoolExecutor-0_0 - botocore.auth - DEBUG - CanonicalRequest:
GET
/model_repository/titanic_ensemble/config.pbtxt
host:MY_PREFIX-us-west-2-MY_ACCOUNT.s3.us-west-2.amazonaws.com
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20220706T230809Z
host;x-amz-content-sha256;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
2022-07-07 09:08:09,715 - ThreadPoolExecutor-0_0 - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20220706T230809Z
20220706/us-west-2/s3/aws4_request
7115821a0bf033fa78a814043e4ab3bbad46d5ee0c316066d423e50f33648fbd
2022-07-07 09:08:09,715 - ThreadPoolExecutor-0_0 - botocore.auth - DEBUG - Signature:
a20027b0d0e0bf823845a2a5eec75a45e0507d587a12acc063eee21cc960fc6e
2022-07-07 09:08:09,715 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event request-created.s3.GetObject: calling handler <function signal_transferring at 0x7fd5c07c20d0>
2022-07-07 09:08:09,715 - ThreadPoolExecutor-0_0 - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=True, method=GET, url=https://MY_PREFIX-us-west-2-MY_ACCOUNT.s3.us-west-2.amazonaws.com/model_repository/titanic_ensemble/config.pbtxt, headers={'User-Agent': b'aws-cli/2.4.27 Python/3.8.8 Darwin/21.4.0 exe/x86_64 prompt/off command/s3.cp', 'X-Amz-Date': b'20220706T230809Z', 'X-Amz-Content-SHA256': b'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'Authorization': b'AWS4-HMAC-SHA256 Credential=AKIAW44YBVKOQKIQBFYF/20220706/us-west-2/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=a20027b0d0e0bf823845a2a5eec75a45e0507d587a12acc063eee21cc960fc6e'}>
2022-07-07 09:08:09,716 - ThreadPoolExecutor-0_0 - botocore.httpsession - DEBUG - Certificate path: /usr/local/aws-cli/awscli/botocore/cacert.pem
2022-07-07 09:08:09,716 - ThreadPoolExecutor-0_0 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): MY_PREFIX-us-west-2-MY_ACCOUNT.s3.us-west-2.amazonaws.com:443
2022-07-07 09:08:10,567 - ThreadPoolExecutor-0_0 - urllib3.connectionpool - DEBUG - https://MY_PREFIX-us-west-2-MY_ACCOUNT.s3.us-west-2.amazonaws.com:443 "GET /model_repository/titanic_ensemble/config.pbtxt HTTP/1.1" 200 3606
2022-07-07 09:08:10,568 - ThreadPoolExecutor-0_0 - botocore.parsers - DEBUG - Response headers: {'x-amz-id-2': 'x6u4qIJFpJW9xi+FdhAYv6ICvZapESuDM7AEIxa5LDAkXHDp1cGdrVXNIN2wWankNSsj4M/BwUo=', 'x-amz-request-id': 'CPDYP2DV495GW90F', 'Date': 'Wed, 06 Jul 2022 23:08:11 GMT', 'Last-Modified': 'Wed, 06 Jul 2022 02:22:26 GMT', 'ETag': '"cbf35447b8e32dda8db30ceb05292937"', 'x-amz-server-side-encryption': 'aws:kms', 'x-amz-server-side-encryption-aws-kms-key-id': 'arn:aws:kms:us-west-2:MY_ACCOUNT:key/f6fbd5c7-ab1b-4eb6-a769-ea789c24125f', 'x-amz-server-side-encryption-bucket-key-enabled': 'true', 'x-amz-version-id': 'zmWsxJtj5EEQmrb8xr2bzzC.IRT4OgkR', 'Accept-Ranges': 'bytes', 'Content-Type': 'binary/octet-stream', 'Server': 'AmazonS3', 'Content-Length': '3606'}
2022-07-07 09:08:10,569 - ThreadPoolExecutor-0_0 - botocore.parsers - DEBUG - Response body:
<botocore.response.StreamingBody object at 0x7fd5b0888040>
2022-07-07 09:08:10,570 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event needs-retry.s3.GetObject: calling handler <bound method RetryHandler.needs_retry of <botocore.retries.standard.RetryHandler object at 0x7fd5a0570fd0>>
2022-07-07 09:08:10,570 - ThreadPoolExecutor-0_0 - botocore.retries.standard - DEBUG - Not retrying request.
2022-07-07 09:08:10,570 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event needs-retry.s3.GetObject: calling handler <bound method S3RegionRedirector.redirect_from_error of <botocore.utils.S3RegionRedirector object at 0x7fd5a05ae070>>
2022-07-07 09:08:10,571 - ThreadPoolExecutor-0_0 - botocore.utils - DEBUG - S3 request was previously redirected, not redirecting.
2022-07-07 09:08:10,571 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event after-call.s3.GetObject: calling handler <function enhance_error_msg at 0x7fd5c0a188b0>
2022-07-07 09:08:10,571 - ThreadPoolExecutor-0_0 - botocore.hooks - DEBUG - Event after-call.s3.GetObject: calling handler <bound method RetryQuotaChecker.release_retry_quota of <botocore.retries.standard.RetryQuotaChecker object at 0x7fd5a0570b20>>
2022-07-07 09:08:10,571 - ThreadPoolExecutor-0_0 - s3transfer.tasks - DEBUG - IOWriteTask(transfer_id=0, {'offset': 0}) about to wait for the following futures []
2022-07-07 09:08:10,571 - ThreadPoolExecutor-0_0 - s3transfer.tasks - DEBUG - IOWriteTask(transfer_id=0, {'offset': 0}) done waiting for dependent futures
2022-07-07 09:08:10,572 - ThreadPoolExecutor-0_0 - s3transfer.tasks - DEBUG - Executing task IOWriteTask(transfer_id=0, {'offset': 0}) with kwargs {'fileobj': <s3transfer.utils.DeferredOpenFile object at 0x7fd5a05ffbe0>, 'offset': 0}
2022-07-07 09:08:10,572 - ThreadPoolExecutor-0_0 - s3transfer.tasks - DEBUG - IORenameFileTask(transfer_id=0, {'final_filename': '/private/tmp/test.txt'}) about to wait for the following futures []
2022-07-07 09:08:10,572 - ThreadPoolExecutor-0_0 - s3transfer.tasks - DEBUG - IORenameFileTask(transfer_id=0, {'final_filename': '/private/tmp/test.txt'}) done waiting for dependent futures
2022-07-07 09:08:10,572 - ThreadPoolExecutor-0_0 - s3transfer.tasks - DEBUG - Executing task IORenameFileTask(transfer_id=0, {'final_filename': '/private/tmp/test.txt'}) with kwargs {'fileobj': <s3transfer.utils.DeferredOpenFile object at 0x7fd5a05ffbe0>, 'final_filename': '/private/tmp/test.txt', 'osutil': <s3transfer.utils.OSUtils object at 0x7fd5a05ae2b0>}
2022-07-07 09:08:10,573 - ThreadPoolExecutor-0_0 - s3transfer.utils - DEBUG - Releasing acquire 0/None
download: s3://MY_PREFIX-us-west-2-MY_ACCOUNT/model_repository/titanic_ensemble/config.pbtxt to ./test.txt
2022-07-07 09:08:10,573 - Thread-1 - awscli.customizations.s3.results - DEBUG - Shutdown request received in result processing thread, shutting down result thread.
I tested with latest rclone v1.58.1 locally and still got the same error