[root@gpdb-sandbox ~]# aws s3 cp samplefile1.txt s3://firstname --debug
2016-12-15 17:43:01,281 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.11.29 Python/2.6.6 Linux/2.6.32-573.el6.x86_64 botocore/1.4.86
2016-12-15 17:43:01,281 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['s3', 'cp', 'samplefile1.txt', 's3://firstname', '--debug']
2016-12-15 17:43:01,282 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_scalar_parsers at 0x28f9500>
2016-12-15 17:43:01,282 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x2526500>
2016-12-15 17:43:01,283 - MainThread - botocore.hooks - DEBUG - Event building-command-table.s3: calling handler <function add_waiters at 0x2909410>
2016-12-15 17:43:01,285 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.s3.anonymous: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,285 - MainThread - botocore.hooks - DEBUG - Event building-command-table.cp: calling handler <function add_waiters at 0x2909410>
2016-12-15 17:43:01,288 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.sse-c-key: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,289 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.expected-size: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,289 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.grants: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,289 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.content-language: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,289 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.page-size: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,289 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.anonymous: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,290 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.sse-c-copy-source-key: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,290 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.paths: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,290 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.anonymous: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,290 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.source-region: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,290 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.content-encoding: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,290 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.content-disposition: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,290 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.cache-control: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,291 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.metadata: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,291 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.dryrun: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,291 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.custom.cp: calling handler <awscli.argprocess.ParamShorthandParser object at 0x2905d90>
2016-12-15 17:43:01,291 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.sse-c: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,291 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.expires: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,291 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.sse-c-copy-source: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,291 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.ignore-glacier-warnings: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,292 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.custom.cp: calling handler <awscli.argprocess.ParamShorthandParser object at 0x2905d90>
2016-12-15 17:43:01,292 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.content-type: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,292 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.sse: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,292 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.metadata-directive: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,292 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.only-show-errors: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,292 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.custom.cp: calling handler <awscli.argprocess.ParamShorthandParser object at 0x2905d90>
2016-12-15 17:43:01,292 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.force-glacier-transfer: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,293 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.custom.cp: calling handler <awscli.argprocess.ParamShorthandParser object at 0x2905d90>
2016-12-15 17:43:01,293 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.anonymous: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,293 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.quiet: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,293 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.custom.cp: calling handler <awscli.argprocess.ParamShorthandParser object at 0x2905d90>
2016-12-15 17:43:01,293 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.acl: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,293 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.storage-class: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,293 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.sse-kms-key-id: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,293 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.website-redirect: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,294 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.cp.follow-symlinks: calling handler <function uri_param at 0x24d22a8>
2016-12-15 17:43:01,294 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.custom.cp: calling handler <awscli.argprocess.ParamShorthandParser object at 0x2905d90>
2016-12-15 17:43:01,294 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: env
2016-12-15 17:43:01,294 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: assume-role
2016-12-15 17:43:01,294 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: shared-credentials-file
2016-12-15 17:43:01,295 - MainThread - botocore.credentials - INFO - Found credentials in shared credentials file: ~/.aws/credentials
2016-12-15 17:43:01,295 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws/lib/python2.6/site-packages/botocore/data/endpoints.json
2016-12-15 17:43:01,345 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws/lib/python2.6/site-packages/botocore/data/s3/2006-03-01/service-2.json
2016-12-15 17:43:01,512 - MainThread - botocore.client - DEBUG - Registering retry handlers for service: s3
2016-12-15 17:43:01,517 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x20496e0>
2016-12-15 17:43:01,517 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x2046de8>
2016-12-15 17:43:01,518 - MainThread - botocore.args - DEBUG - The s3 config key is not a dictionary type, ignoring its value of: None
2016-12-15 17:43:01,523 - MainThread - botocore.endpoint - DEBUG - Setting s3 timeout as (60, 60)
2016-12-15 17:43:01,523 - MainThread - botocore.client - DEBUG - Defaulting to S3 virtual host style addressing with path style addressing fallback.
2016-12-15 17:43:01,525 - MainThread - botocore.client - DEBUG - Registering retry handlers for service: s3
2016-12-15 17:43:01,528 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x20496e0>
2016-12-15 17:43:01,528 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x2046de8>
2016-12-15 17:43:01,528 - MainThread - botocore.args - DEBUG - The s3 config key is not a dictionary type, ignoring its value of: None
2016-12-15 17:43:01,532 - MainThread - botocore.endpoint - DEBUG - Setting s3 timeout as (60, 60)
2016-12-15 17:43:01,533 - MainThread - botocore.client - DEBUG - Defaulting to S3 virtual host style addressing with path style addressing fallback.
2016-12-15 17:43:01,533 - MainThread - botocore.client - DEBUG - Registering retry handlers for service: s3
2016-12-15 17:43:01,536 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x20496e0>
2016-12-15 17:43:01,536 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x2046de8>
2016-12-15 17:43:01,536 - MainThread - botocore.args - DEBUG - The s3 config key is not a dictionary type, ignoring its value of: None
2016-12-15 17:43:01,598 - MainThread - botocore.endpoint - DEBUG - Setting s3 timeout as (60, 60)
2016-12-15 17:43:01,598 - MainThread - botocore.client - DEBUG - Defaulting to S3 virtual host style addressing with path style addressing fallback.
2016-12-15 17:43:01,600 - MainThread - awscli.customizations.s3.s3handler - DEBUG - Using a multipart threshold of 8388608 and a part size of 8388608
2016-12-15 17:43:01,601 - MainThread - s3transfer.utils - DEBUG - Acquiring 0
2016-12-15 17:43:01,602 - Thread-2 - s3transfer.tasks - DEBUG - UploadSubmissionTask(transfer_id=0, {'transfer_future': <s3transfer.futures.TransferFuture object at 0x3221d90>}) about to wait for the following futures []
2016-12-15 17:43:01,603 - Thread-2 - s3transfer.tasks - DEBUG - UploadSubmissionTask(transfer_id=0, {'transfer_future': <s3transfer.futures.TransferFuture object at 0x3221d90>}) done waiting for dependent futures
2016-12-15 17:43:01,603 - Thread-2 - s3transfer.tasks - DEBUG - Executing task UploadSubmissionTask(transfer_id=0, {'transfer_future': <s3transfer.futures.TransferFuture object at 0x3221d90>}) with kwargs {'osutil': <s3transfer.utils.OSUtils object at 0x320cd50>, 'client': <botocore.client.S3 object at 0x31ee150>, 'config': <s3transfer.manager.TransferConfig object at 0x320ccd0>, 'transfer_future': <s3transfer.futures.TransferFuture object at 0x3221d90>, 'request_executor': <s3transfer.futures.BoundedExecutor object at 0x320cf10>}
2016-12-15 17:43:01,605 - Thread-2 - s3transfer.futures - DEBUG - Submitting task PutObjectTask(transfer_id=0, {'extra_args': {'ContentType': 'text/plain'}, 'bucket': u'firstname', 'key': u'samplefile1.txt'}) to executor <s3transfer.futures.BoundedExecutor object at 0x320cf10> for transfer request: 0.
2016-12-15 17:43:01,605 - Thread-2 - s3transfer.utils - DEBUG - Acquiring 0
2016-12-15 17:43:01,606 - Thread-3 - s3transfer.tasks - DEBUG - PutObjectTask(transfer_id=0, {'extra_args': {'ContentType': 'text/plain'}, 'bucket': u'firstname', 'key': u'samplefile1.txt'}) about to wait for the following futures []
2016-12-15 17:43:01,606 - Thread-2 - s3transfer.utils - DEBUG - Releasing acquire 0/None
2016-12-15 17:43:01,607 - Thread-3 - s3transfer.tasks - DEBUG - PutObjectTask(transfer_id=0, {'extra_args': {'ContentType': 'text/plain'}, 'bucket': u'firstname', 'key': u'samplefile1.txt'}) done waiting for dependent futures
2016-12-15 17:43:01,607 - Thread-3 - s3transfer.tasks - DEBUG - Executing task PutObjectTask(transfer_id=0, {'extra_args': {'ContentType': 'text/plain'}, 'bucket': u'firstname', 'key': u'samplefile1.txt'}) with kwargs {'extra_args': {'ContentType': 'text/plain'}, 'client': <botocore.client.S3 object at 0x31ee150>, 'bucket': u'firstname', 'key': u'samplefile1.txt', 'fileobj': <s3transfer.utils.ReadFileChunk object at 0x2102210>}
2016-12-15 17:43:01,610 - Thread-3 - botocore.hooks - DEBUG - Event before-parameter-build.s3.PutObject: calling handler <function validate_ascii_metadata at 0x20a9668>
2016-12-15 17:43:01,610 - Thread-3 - botocore.hooks - DEBUG - Event before-parameter-build.s3.PutObject: calling handler <function sse_md5 at 0x20a7cf8>
2016-12-15 17:43:01,610 - Thread-3 - botocore.hooks - DEBUG - Event before-parameter-build.s3.PutObject: calling handler <function convert_body_to_file_like_object at 0x20a9c80>
2016-12-15 17:43:01,610 - Thread-3 - botocore.hooks - DEBUG - Event before-parameter-build.s3.PutObject: calling handler <function validate_bucket_name at 0x20a7c80>
2016-12-15 17:43:01,610 - Thread-3 - botocore.hooks - DEBUG - Event before-parameter-build.s3.PutObject: calling handler <bound method S3RegionRedirector.redirect_from_cache of <botocore.utils.S3RegionRedirector object at 0x31ee850>>
2016-12-15 17:43:01,610 - Thread-3 - botocore.hooks - DEBUG - Event before-parameter-build.s3.PutObject: calling handler <function generate_idempotent_uuid at 0x20a6c80>
2016-12-15 17:43:01,612 - Thread-3 - botocore.hooks - DEBUG - Event before-call.s3.PutObject: calling handler <function conditionally_calculate_md5 at 0x20a7c08>
2016-12-15 17:43:01,613 - Thread-3 - botocore.hooks - DEBUG - Event before-call.s3.PutObject: calling handler <function add_expect_header at 0x20a9140>
2016-12-15 17:43:01,613 - Thread-3 - botocore.handlers - DEBUG - Adding expect 100 continue header to request.
2016-12-15 17:43:01,613 - Thread-3 - botocore.hooks - DEBUG - Event before-call.s3.PutObject: calling handler <bound method S3RegionRedirector.set_request_url of <botocore.utils.S3RegionRedirector object at 0x31ee850>>
2016-12-15 17:43:01,613 - Thread-3 - botocore.endpoint - DEBUG - Making request for OperationModel(name=PutObject) (verify_ssl=True) with params: {'body': <s3transfer.utils.ReadFileChunk object at 0x2102210>, 'url': u'
https://s3.amazonaws.com/firstname/samplefile1.txt', 'headers': {'Content-MD5': u'E6H+a3e83SJ2SiowdPpLvA==', u'Content-Type': 'text/plain', 'Expect': '100-continue', 'User-Agent': 'aws-cli/1.11.29 Python/2.6.6 Linux/2.6.32-573.el6.x86_64 botocore/1.4.86'}, 'context': {'client_region': 'us-east-1', 'signing': {'bucket': u'firstname'}, 'has_streaming_input': True, 'client_config': <botocore.config.Config object at 0x31ee290>}, 'query_string': {}, 'url_path': u'/firstname/samplefile1.txt', 'method': u'PUT'}
2016-12-15 17:43:01,614 - Thread-3 - botocore.hooks - DEBUG - Event request-created.s3.PutObject: calling handler <function disable_upload_callbacks at 0x25f0050>
2016-12-15 17:43:01,614 - Thread-3 - botocore.hooks - DEBUG - Event request-created.s3.PutObject: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x31ee110>>
2016-12-15 17:43:01,614 - Thread-3 - botocore.hooks - DEBUG - Event before-sign.s3.PutObject: calling handler <function fix_s3_host at 0x1ef9cf8>
2016-12-15 17:43:01,615 - Thread-3 - botocore.auth - DEBUG - Calculating signature using hmacv1 auth.
2016-12-15 17:43:01,615 - Thread-3 - botocore.auth - DEBUG - HTTP request method: PUT
2016-12-15 17:43:01,615 - Thread-3 - botocore.auth - DEBUG - StringToSign:
PUT
E6H+a3e83SJ2SiowdPpLvA==
text/plain
Thu, 15 Dec 2016 22:43:01 GMT
/firstname/samplefile1.txt
2016-12-15 17:43:01,615 - Thread-3 - botocore.hooks - DEBUG - Event request-created.s3.PutObject: calling handler <function enable_upload_callbacks at 0x25f00c8>
2016-12-15 17:43:01,622 - Thread-3 - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [PUT]>
2016-12-15 17:43:01,623 - Thread-3 - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Starting new HTTPS connection (1):
firstname.s3.amazonaws.com2016-12-15 17:43:01,662 - Thread-3 - botocore.awsrequest - DEBUG - Waiting for 100 Continue response.
2016-12-15 17:43:01,682 - Thread-3 - botocore.awsrequest - DEBUG - 100 Continue response seen, now sending request body.
2016-12-15 17:43:01,696 - Thread-3 - botocore.vendored.requests.packages.urllib3.connectionpool - DEBUG - "PUT /samplefile1.txt HTTP/1.1" 200 0
2016-12-15 17:43:01,698 - Thread-3 - botocore.parsers - DEBUG - Response headers: {'content-length': '0', 'x-amz-id-2': 'bnemHeBtILlh0C4xQO18KuDNZCNFskI4IrBTqJzoOjsRKkLkd2BT27HUl7zqw+BbuYEe+ZTaZac=', 'server': 'AmazonS3', 'x-amz-request-id': '39CC24673362F820', 'etag': '"13a1fe6b77bcdd22764a2a3074fa4bbc"', 'date': 'Thu, 15 Dec 2016 22:43:52 GMT'}
2016-12-15 17:43:01,698 - Thread-3 - botocore.parsers - DEBUG - Response body:
2016-12-15 17:43:01,700 - Thread-3 - botocore.hooks - DEBUG - Event needs-retry.s3.PutObject: calling handler <botocore.retryhandler.RetryHandler object at 0x30df750>
2016-12-15 17:43:01,700 - Thread-3 - botocore.retryhandler - DEBUG - No retry needed.
2016-12-15 17:43:01,700 - Thread-3 - botocore.hooks - DEBUG - Event needs-retry.s3.PutObject: calling handler <bound method S3RegionRedirector.redirect_from_error of <botocore.utils.S3RegionRedirector object at 0x31ee850>>
2016-12-15 17:43:01,700 - Thread-3 - botocore.hooks - DEBUG - Event after-call.s3.PutObject: calling handler <function enhance_error_msg at 0x28f6f50>
upload: ./samplefile1.txt to s3://firstname/samplefile1.txt
2016-12-15 17:43:01,701 - Thread-3 - s3transfer.utils - DEBUG - Releasing acquire 0/None
2016-12-15 17:43:01,723 - Thread-1 - awscli.customizations.s3.results - DEBUG - Shutdown request received in result processing thread, shutting down result thread.
[root@gpdb-sandbox ~]#
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++