Aws-cli: aws s3 ls - can ls bucket

Creado en 1 abr. 2015  ·  3Comentarios  ·  Fuente: aws/aws-cli

[ jaffer @ data-aw-prod ~] $ aws --versión
aws-cli / 1.7.18 Python / 2.6.9 Linux / 3.14.35-28.38.amzn1.x86_64
[ jaffer @ data-aw-prod ~] $

[ jaffer @ data-aw-prod ~] $ aws s3 ls --debug
2015-04-01 11: 56: 42,132 - MainThread - awscli.clidriver - DEBUG - Versión CLI: aws-cli / 1.7.18 Python / 2.6.9 Linux / 3.14.35-28.38.amzn1.x86_64, versión botocore: 0.99 .0
2015-04-01 11: 56: 42,132 - MainThread - awscli.clidriver - DEBUG - Argumentos ingresados ​​en CLI: ['s3', 'ls', '--debug']
2015-04-01 11: 56: 42,132 - MainThread - botocore.hooks - DEBUG - Sesión de evento inicializada: controlador de llamadas
2015-04-01 11: 56: 42,132 - MainThread - botocore.hooks - DEBUG - Sesión de evento inicializada: controlador de llamadas
2015-04-01 11: 56: 42,133 - MainThread - botocore.hooks - DEBUG - Event building-command-table.s3: controlador de llamadas
2015-04-01 11: 56: 42,134 - MainThread - botocore.hooks - DEBUG - Evento load-cli-arg.custom.s3.anonymous: controlador de llamadas
2015-04-01 11: 56: 42,134 - MainThread - botocore.hooks - DEBUG - Event building-command-table.ls: controlador de llamadas
2015-04-01 11: 56: 42,135 - MainThread - botocore.hooks - DEBUG - Evento load-cli-arg.custom.ls.paths: controlador de llamadas
2015-04-01 11: 56: 42,135 - MainThread - botocore.hooks - DEBUG - Evento load-cli-arg.custom.ls.summarize: controlador de llamadas
2015-04-01 11: 56: 42,135 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.custom.ls: controlador de llamadas
2015-04-01 11: 56: 42,135 - MainThread - awscli.argprocess - DEBUG - Estructura detectada: escalar
2015-04-01 11: 56: 42,135 - MainThread - botocore.hooks - DEBUG - Evento load-cli-arg.custom.ls.anonymous: controlador de llamadas
2015-04-01 11: 56: 42,135 - MainThread - botocore.hooks - DEBUG - Evento load-cli-arg.custom.ls.human-legible: controlador de llamadas
2015-04-01 11: 56: 42,135 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.custom.ls: controlador de llamadas
2015-04-01 11: 56: 42,136 - MainThread - awscli.argprocess - DEBUG - Estructura detectada: escalar
2015-04-01 11: 56: 42,136 - MainThread - botocore.hooks - DEBUG - Evento load-cli-arg.custom.ls.page-size: controlador de llamadas
2015-04-01 11: 56: 42,136 - MainThread - botocore.credentials - DEBUG - Buscando credenciales a través de: env
2015-04-01 11: 56: 42,136 - MainThread - botocore.credentials - INFO - Credenciales encontradas en variables de entorno.
2015-04-01 11: 56: 42,215 - MainThread - botocore.client - DEBUG - Registro de controladores de reintento para el servicio: s3
2015-04-01 11: 56: 42,215 - MainThread - botocore.client - DEBUG - Registro de controladores de reintento para el servicio: s3
2015-04-01 11: 56: 42,221 - MainThread - botocore.hooks - DEBUG - Evento before-call.s3.ListBuckets: controlador de llamadas
2015-04-01 11: 56: 42,221 - MainThread - botocore.endpoint - DEBUG - Haciendo solicitud para(verify_ssl = True) con parámetros: {'query_string': '', 'headers': {}, 'url_path': '/', 'body': '', 'method': u'GET '}
2015-04-01 11: 56: 42,221 - MainThread - botocore.hooks - DEBUG - Evento request-created.s3.ListBuckets: controlador de llamadas>
2015-04-01 11: 56: 42,221 - MainThread - botocore.hooks - DEBUG - Evento antes de sign.s3.ListBuckets: controlador de llamadas
2015-04-01 11: 56: 42,222 - MainThread - botocore.auth - DEBUG - Calculando la firma usando v4 auth.
2015-04-01 11: 56: 42,222 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
OBTENER
/

anfitrión: s3.us-east.amazonaws.com
agente de usuario
x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz- fecha: 20150401T155642Z

host; agente de usuario; x-amz-content-sha256; x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
2015-04-01 11: 56: 42,222 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20150401T155642Z
20150401 / us-east / s3 / aws4_request
e0002ea5e32486a5cd7a2014cf22368b82951adb37d010bd31ffd4ec5a5c3b5b
2015-04-01 11: 56: 42,222 - MainThread - botocore.auth - DEBUG - Firma:
183a8b6e48fe85f9713139c4763e1af3ba68c8b5aa38fdb03d0fe38d65e8ee2c
2015-04-01 11: 56: 42,228 - MainThread - botocore.endpoint - DEBUG - Enviando solicitud http: 2015-04-01 11: 56: 42,229 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Iniciando una nueva conexión HTTPS (1): s3.us-east.amazonaws.com
2015-04-01 11: 56: 42,231 - MainThread - botocore.hooks - DEBUG - Event needs-retry.s3.ListBuckets: controlador de llamadas
2015-04-01 11: 56: 42,231 - MainThread - botocore.retryhandler - DEBUG - reintento necesario, excepción recuperable detectada: No se pudo conectar a la URL del punto final: " https://s3.us-east.amazonaws.com/ "
Rastreo (llamadas recientes más última):
Archivo "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", línea 265, en _should_retry
return self._checker (número_intento, respuesta, excepción_capturada)
Archivo "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", línea 313, en __call__
atrapado_excepción)
Archivo "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", línea 222, en la llamada
return self._check_caught_exception (número_tento, excepción_capturada)
Archivo "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", línea 355, en _check_caught_exception
aumentar la excepción_capturada
EndpointConnectionError: No se pudo conectar a la URL del extremo: " https://s3.us-east.amazonaws.com/ "
2015-04-01 11: 56: 42,232 - MainThread - botocore.retryhandler - DEBUG - Reintento necesario, acción de: 0.322988676199
2015-04-01 11: 56: 42,232 - MainThread - botocore.endpoint - DEBUG - Respuesta recibida para reintentar, durmiendo 0.322988676199 segundos
2015-04-01 11: 56: 42,555 - MainThread - botocore.hooks - DEBUG - Evento request-created.s3.ListBuckets: controlador de llamadas>
2015-04-01 11: 56: 42,556 - MainThread - botocore.hooks - DEBUG - Evento antes de sign.s3.ListBuckets: controlador de llamadas
2015-04-01 11: 56: 42,556 - MainThread - botocore.auth - DEBUG - Calculando la firma usando v4 auth.
2015-04-01 11: 56: 42,556 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
OBTENER
/

anfitrión: s3.us-east.amazonaws.com
agente de usuario
x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz- fecha: 20150401T155642Z

host; agente de usuario; x-amz-content-sha256; x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
2015-04-01 11: 56: 42,557 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20150401T155642Z
20150401 / us-east / s3 / aws4_request
e0002ea5e32486a5cd7a2014cf22368b82951adb37d010bd31ffd4ec5a5c3b5b
2015-04-01 11: 56: 42,557 - MainThread - botocore.auth - DEBUG - Firma:
183a8b6e48fe85f9713139c4763e1af3ba68c8b5aa38fdb03d0fe38d65e8ee2c
2015-04-01 11: 56: 42,557 - MainThread - botocore.endpoint - DEBUG - Enviando solicitud http: 2015-04-01 11: 56: 42,558 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Iniciando una nueva conexión HTTPS (2): s3.us-east.amazonaws.com
2015-04-01 11: 56: 42,559 - MainThread - botocore.hooks - DEBUG - Event needs-retry.s3.ListBuckets: controlador de llamadas
2015-04-01 11: 56: 42,559 - MainThread - botocore.retryhandler - DEBUG - reintento necesario, excepción recuperable detectada: No se pudo conectar a la URL del punto final: " https://s3.us-east.amazonaws.com/ "
Rastreo (llamadas recientes más última):
Archivo "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", línea 265, en _should_retry
return self._checker (número_intento, respuesta, excepción_capturada)
Archivo "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", línea 313, en __call__
atrapado_excepción)
Archivo "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", línea 222, en la llamada
return self._check_caught_exception (número_tento, excepción_capturada)
Archivo "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", línea 355, en _check_caught_exception
aumentar la excepción_capturada
EndpointConnectionError: No se pudo conectar a la URL del extremo: " https://s3.us-east.amazonaws.com/ "
2015-04-01 11: 56: 42,559 - MainThread - botocore.retryhandler - DEBUG - Reintento necesario, acción de: 0.75575215895
2015-04-01 11: 56: 42,559 - MainThread - botocore.endpoint - DEBUG - Respuesta recibida para reintentar, durmiendo durante 0.75575215895 segundos
2015-04-01 11: 56: 43,316 - MainThread - botocore.hooks - DEBUG - Evento request-created.s3.ListBuckets: controlador de llamadas>
2015-04-01 11: 56: 43,317 - MainThread - botocore.hooks - DEBUG - Evento antes de sign.s3.ListBuckets: controlador de llamadas
2015-04-01 11: 56: 43,317 - MainThread - botocore.auth - DEBUG - Calculando la firma usando v4 auth.
2015-04-01 11: 56: 43,317 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
OBTENER
/

anfitrión: s3.us-east.amazonaws.com
agente de usuario
x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz- fecha: 20150401T155643Z

host; agente de usuario; x-amz-content-sha256; x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
2015-04-01 11: 56: 43,317 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20150401T155643Z
20150401 / us-east / s3 / aws4_request
2b218ca18cc6f59827d9cc6ccc4c222ed77e7b2b9e1fd6aa4242e406e7e404ec
2015-04-01 11: 56: 43,318 - MainThread - botocore.auth - DEBUG - Firma:
1e99b5f508a30bfa547607d915aec56f9667e6c6db66dc65643202822314c377
2015-04-01 11: 56: 43,318 - MainThread - botocore.endpoint - DEBUG - Enviando solicitud http: 2015-04-01 11: 56: 43,319 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Iniciando una nueva conexión HTTPS (3): s3.us-east.amazonaws.com
2015-04-01 11: 56: 43,320 - MainThread - botocore.hooks - DEBUG - Event needs-retry.s3.ListBuckets: controlador de llamadas
2015-04-01 11: 56: 43,320 - MainThread - botocore.retryhandler - DEBUG - reintento necesario, excepción recuperable detectada: No se pudo conectar a la URL del extremo: " https://s3.us-east.amazonaws.com/ "
Rastreo (llamadas recientes más última):
Archivo "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", línea 265, en _should_retry
return self._checker (número_intento, respuesta, excepción_capturada)
Archivo "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", línea 313, en __call__
atrapado_excepción)
Archivo "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", línea 222, en la llamada
return self._check_caught_exception (número_tento, excepción_capturada)
Archivo "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", línea 355, en _check_caught_exception
aumentar la excepción_capturada
EndpointConnectionError: No se pudo conectar a la URL del extremo: " https://s3.us-east.amazonaws.com/ "
2015-04-01 11: 56: 43,320 - MainThread - botocore.retryhandler - DEBUG - Reintento necesario, acción de: 2.18930448654
2015-04-01 11: 56: 43,320 - MainThread - botocore.endpoint - DEBUG - Respuesta recibida para reintentar, durmiendo durante 2.18930448654 segundos
2015-04-01 11: 56: 45,512 - MainThread - botocore.hooks - DEBUG - Evento request-created.s3.ListBuckets: controlador de llamadas>
2015-04-01 11: 56: 45,512 - MainThread - botocore.hooks - DEBUG - Evento antes de sign.s3.ListBuckets: controlador de llamadas
2015-04-01 11: 56: 45,513 - MainThread - botocore.auth - DEBUG - Calculando la firma usando v4 auth.
2015-04-01 11: 56: 45,513 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
OBTENER
/

anfitrión: s3.us-east.amazonaws.com
agente de usuario
x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz- fecha: 20150401T155645Z

host; agente de usuario; x-amz-content-sha256; x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
2015-04-01 11: 56: 45,513 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20150401T155645Z
20150401 / us-east / s3 / aws4_request
48ccbdbf0fd162f787956abaeec2bcc73a92b5cd03e23bbfcf20f9721cd629cf
2015-04-01 11: 56: 45,513 - MainThread - botocore.auth - DEBUG - Firma:
715db569aa580b92850617e41db4d78d4a8eb5ccc51018bf3500272d98bb1502
2015-04-01 11: 56: 45,513 - MainThread - botocore.endpoint - DEBUG - Enviando solicitud http: 2015-04-01 11: 56: 45,514 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Iniciando una nueva conexión HTTPS (4): s3.us-east.amazonaws.com
2015-04-01 11: 56: 45,515 - MainThread - botocore.hooks - DEBUG - Event needs-retry.s3.ListBuckets: controlador de llamadas
2015-04-01 11: 56: 45,515 - MainThread - botocore.retryhandler - DEBUG - reintento necesario, excepción recuperable detectada: No se pudo conectar a la URL del punto final: " https://s3.us-east.amazonaws.com/ "
Rastreo (llamadas recientes más última):
Archivo "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", línea 265, en _should_retry
return self._checker (número_intento, respuesta, excepción_capturada)
Archivo "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", línea 313, en __call__
atrapado_excepción)
Archivo "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", línea 222, en la llamada
return self._check_caught_exception (número_tento, excepción_capturada)
Archivo "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", línea 355, en _check_caught_exception
aumentar la excepción_capturada
EndpointConnectionError: No se pudo conectar a la URL del extremo: " https://s3.us-east.amazonaws.com/ "
2015-04-01 11: 56: 45,515 - MainThread - botocore.retryhandler - DEBUG - Reintento necesario, acción de: 0.576300993129
2015-04-01 11: 56: 45,515 - MainThread - botocore.endpoint - DEBUG - Respuesta recibida para reintentar, durmiendo durante 0.576300993129 segundos
2015-04-01 11: 56: 46,092 - MainThread - botocore.hooks - DEBUG - Evento request-created.s3.ListBuckets: controlador de llamadas>
2015-04-01 11: 56: 46,092 - MainThread - botocore.hooks - DEBUG - Evento antes de sign.s3.ListBuckets: controlador de llamadas
2015-04-01 11: 56: 46,093 - MainThread - botocore.auth - DEBUG - Calculando la firma usando v4 auth.
2015-04-01 11: 56: 46,093 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
OBTENER
/

anfitrión: s3.us-east.amazonaws.com
agente de usuario
x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz- fecha: 20150401T155646Z

host; agente de usuario; x-amz-content-sha256; x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
2015-04-01 11: 56: 46,093 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20150401T155646Z
20150401 / us-east / s3 / aws4_request
18c5d85e0996b1ed77b2e06c0cc78b476cdb1a25d05a13f665c82a9066d61ef4
2015-04-01 11: 56: 46,093 - MainThread - botocore.auth - DEBUG - Firma:
d6c4ab22c43a2765e219ebe83cdebbbdae61c6b300445fec73f67ff0bc526507
2015-04-01 11: 56: 46,094 - MainThread - botocore.endpoint - DEBUG - Enviando solicitud http: 2015-04-01 11: 56: 46,094 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Iniciando una nueva conexión HTTPS (5): s3.us-east.amazonaws.com
2015-04-01 11: 56: 46,095 - MainThread - botocore.hooks - DEBUG - Event needs-retry.s3.ListBuckets: controlador de llamadas
2015-04-01 11: 56: 46,095 - MainThread - awscli.clidriver - DEBUG - Excepción atrapada en main ()
Rastreo (llamadas recientes más última):
Archivo "/usr/local/lib/python2.6/site-packages/awscli/clidriver.py", línea 183, en main
return tabla_comando parsed_args.command
Archivo "/usr/local/lib/python2.6/site-packages/awscli/customizations/commands.py", línea 190, en la llamada
parsed_globals)
Archivo "/usr/local/lib/python2.6/site-packages/awscli/customizations/commands.py", línea 187, en la llamada
return self._run_main (parsed_args, parsed_globals)
Archivo "/usr/local/lib/python2.6/site-packages/awscli/customizations/s3/subcommands.py", línea 324, en _run_main
self._list_all_buckets ()
Archivo "/usr/local/lib/python2.6/site-packages/awscli/customizations/s3/subcommands.py", línea 383, en _list_all_buckets
response_data = self.client.list_buckets ()
Archivo "/usr/local/lib/python2.6/site-packages/botocore/client.py", línea 187, en _api_call
return self._make_api_call (nombre_operación, kwargs)
Archivo "/usr/local/lib/python2.6/site-packages/botocore/client.py", línea 231, en _make_api_call
Operation_model, request_dict)
Archivo "/usr/local/lib/python2.6/site-packages/botocore/endpoint.py", línea 173, en make_request
return self._send_request (request_dict, operation_model)
Archivo "/usr/local/lib/python2.6/site-packages/botocore/endpoint.py", línea 203, en _send_request
respuesta_exitosa, excepción):
Archivo "/usr/local/lib/python2.6/site-packages/botocore/endpoint.py", línea 267, en _needs_retry
atrapado_excepción = atrapado_excepción)
Archivo "/usr/local/lib/python2.6/site-packages/botocore/hooks.py", línea 226, en emit
return self._emit (event_name, kwargs)
Archivo "/usr/local/lib/python2.6/site-packages/botocore/hooks.py", línea 209, en _emit
respuesta = manejador ( kwargs)Archivo "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", línea 183, en __call__if self._checker (intentos, respuesta, captura_excepción):Archivo "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", línea 250, en __call__atrapado_excepción)Archivo "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", línea 273, en _should_retryreturn self._checker (número_intento, respuesta, excepción_capturada)Archivo "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", línea 313, en __call__atrapado_excepción)Archivo "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", línea 222, en ** llamada
return self._check_caught_exception (número_tento, excepción_capturada)
Archivo "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", línea 355, en _check_caught_exception
aumentar la excepción_capturada
EndpointConnectionError: No se pudo conectar a la URL del extremo: " https://s3.us-east.amazonaws.com/ "
2015-04-01 11: 56: 46,096 - MainThread - awscli.clidriver - DEBUG - Saliendo con rc 255

No se pudo conectar a la URL del extremo: " https://s3.us-east.amazonaws.com/ "

Alguna idea de lo que está usando https://s3.us-east.amazonaws.com/ en lugar de https://us-east-1.s3.amazonaws.com/

Comentario más útil

Consejo profesional: probablemente provenga de ~ / .aws / config. Mueva este archivo temporalmente y vuelva a intentarlo. Eso me ayudó.

Todos 3 comentarios

[ jaffer @ data-aw-prod ~] $ aws s3 ls --debug --endpoint-url https://us-east-1.s3.amazonaws.com/
2015-04-02 10: 00: 53,814 - MainThread - awscli.clidriver - DEBUG - Versión CLI: aws-cli / 1.7.18 Python / 2.6.9 Linux / 3.14.35-28.38.amzn1.x86_64, versión botocore: 0.99 .0
2015-04-02 10: 00: 53,814 - MainThread - awscli.clidriver - DEBUG - Argumentos ingresados ​​en CLI: ['s3', 'ls', '--debug', '--endpoint-url', ' https: //us-east-1.s3.amazonaws.com/ ']
2015-04-02 10: 00: 53,814 - MainThread - botocore.hooks - DEBUG - Sesión de evento inicializada: controlador de llamadas
2015-04-02 10: 00: 53,815 - MainThread - botocore.hooks - DEBUG - Sesión de evento inicializada: controlador de llamadas
2015-04-02 10: 00: 53,815 - MainThread - botocore.hooks - DEBUG - Event building-command-table.s3: controlador de llamadas
2015-04-02 10: 00: 53,816 - MainThread - botocore.hooks - DEBUG - Evento load-cli-arg.custom.s3.anonymous: controlador de llamadas
2015-04-02 10: 00: 53,816 - MainThread - botocore.hooks - DEBUG - Event building-command-table.ls: controlador de llamadas
2015-04-02 10: 00: 53,817 - MainThread - botocore.hooks - DEBUG - Evento load-cli-arg.custom.ls.paths: controlador de llamadas
2015-04-02 10: 00: 53,817 - MainThread - botocore.hooks - DEBUG - Evento load-cli-arg.custom.ls.summarize: controlador de llamadas
2015-04-02 10: 00: 53,817 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.custom.ls: controlador de llamadas
2015-04-02 10: 00: 53,817 - MainThread - awscli.argprocess - DEBUG - Estructura detectada: escalar
2015-04-02 10: 00: 53,817 - MainThread - botocore.hooks - DEBUG - Evento load-cli-arg.custom.ls.anonymous: controlador de llamadas
2015-04-02 10: 00: 53,817 - MainThread - botocore.hooks - DEBUG - Evento load-cli-arg.custom.ls.human-legible: controlador de llamadas
2015-04-02 10: 00: 53,817 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.custom.ls: controlador de llamadas
2015-04-02 10: 00: 53,818 - MainThread - awscli.argprocess - DEBUG - Estructura detectada: escalar
2015-04-02 10: 00: 53,818 - MainThread - botocore.hooks - DEBUG - Evento load-cli-arg.custom.ls.page-size: controlador de llamadas
2015-04-02 10: 00: 53,818 - MainThread - botocore.credentials - DEBUG - Buscando credenciales a través de: env
2015-04-02 10: 00: 53,818 - MainThread - botocore.credentials - INFO - Credenciales encontradas en variables de entorno.
2015-04-02 10: 00: 53,896 - MainThread - botocore.client - DEBUG - Registro de controladores de reintento para el servicio: s3
2015-04-02 10: 00: 53,896 - MainThread - botocore.client - DEBUG - Registro de controladores de reintento para el servicio: s3
2015-04-02 10: 00: 53,901 - MainThread - botocore.hooks - DEBUG - Evento before-call.s3.ListBuckets: controlador de llamadas
2015-04-02 10: 00: 53,901 - MainThread - botocore.endpoint - DEBUG - Haciendo solicitud para(verify_ssl = True) con parámetros: {'query_string': '', 'headers': {}, 'url_path': '/', 'body': '', 'method': u'GET '}
2015-04-02 10: 00: 53,901 - MainThread - botocore.hooks - DEBUG - Solicitud de evento creada.s3.ListBuckets: controlador de llamadas>
2015-04-02 10: 00: 53,902 - MainThread - botocore.auth - DEBUG - Calculando la firma usando v4 auth.
2015-04-02 10: 00: 53,902 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
OBTENER
/

anfitrión: us-east-1.s3.amazonaws.com
agente de usuario
x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz- fecha: 20150402T140053Z

host; agente de usuario; x-amz-content-sha256; x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
2015-04-02 10: 00: 53,902 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20150402T140053Z
20150402 / us-east / s3 / aws4_request
c2f10df0a6273531a1c59de88a43aa15d54e0ff0d4efb446bfc413f423a40b6e
2015-04-02 10: 00: 53,902 - MainThread - botocore.auth - DEBUG - Firma:
bbea77bb9355119c47ea3fb62edd0e3ffd32dab9733698f8f82ea7bebba32e99
2015-04-02 10: 00: 53,909 - MainThread - botocore.endpoint - DEBUG - Enviando solicitud http: 2015-04-02 10: 00: 53,909 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Iniciando una nueva conexión HTTPS (1): us-east-1.s3.amazonaws.com
2015-04-02 10: 00: 53,939 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - DEBUG - "GET / HTTP / 1.1" 400 Ninguno
2015-04-02 10: 00: 53,941 - MainThread - botocore.parsers - DEBUG - Encabezados de respuesta:
{'conexión': 'cerrar',
'tipo de contenido': 'aplicación / xml',
'fecha': 'Jue, 02 de Abril de 2015 14:00:53 GMT',
'servidor': 'AmazonS3',
'codificación de transferencia': 'fragmentado',
'x-amz-id-2': '4YKK6iKMv28 // rCRHQDedKvJsyuEXgvY =',
'x-amz-request-id': ''}
2015-04-02 10: 00: 53,941 - MainThread - botocore.parsers - DEBUG - Cuerpo de respuesta:

AuthorizationHeaderMalformedEl encabezado de autorización tiene un formato incorrecto; la región 'us-east' es incorrecta; esperando 'us-east-1'us-este-1CCAA61953FE3FAD04YKK6iKMv28 / bEd3R50qcUidwIza8ckHiPcuVvrX2cZLWDPfx7nvqsz / rCRHQDedKvJsyuEXgvY =
2015-04-02 10: 00: 53,942 - MainThread - botocore.hooks - DEBUG - Event needs-retry.s3.ListBuckets: controlador de llamadas
2015-04-02 10: 00: 53,942 - MainThread - botocore.retryhandler - DEBUG - No es necesario reintentar.
2015-04-02 10: 00: 53,942 - MainThread - botocore.hooks - DEBUG - Evento after-call.s3.ListBuckets: controlador de llamadas
2015-04-02 10: 00: 53,942 - MainThread - botocore.hooks - DEBUG - Evento after-call.s3.ListBuckets: controlador de llamadas
2015-04-02 10: 00: 53,942 - MainThread - awscli.errorhandler - DEBUG - Código de respuesta HTTP: 400
2015-04-02 10: 00: 53,942 - MainThread - awscli.clidriver - DEBUG - Excepción atrapada en main ()
Rastreo (llamadas recientes más última):
Archivo "/usr/local/lib/python2.6/site-packages/awscli/clidriver.py", línea 183, en main
return tabla_comando parsed_args.command
Archivo "/usr/local/lib/python2.6/site-packages/awscli/customizations/commands.py", línea 190, en la llamada
parsed_globals)
Archivo "/usr/local/lib/python2.6/site-packages/awscli/customizations/commands.py", línea 187, en la llamada
return self._run_main (parsed_args, parsed_globals)
Archivo "/usr/local/lib/python2.6/site-packages/awscli/customizations/s3/subcommands.py", línea 324, en _run_main
self._list_all_buckets ()
Archivo "/usr/local/lib/python2.6/site-packages/awscli/customizations/s3/subcommands.py", línea 383, en _list_all_buckets
response_data = self.client.list_buckets ()
Archivo "/usr/local/lib/python2.6/site-packages/botocore/client.py", línea 187, en _api_call
return self._make_api_call (nombre_operación, kwargs)
Archivo "/usr/local/lib/python2.6/site-packages/botocore/client.py", línea 238, en _make_api_call
modelo = modelo_operación
Archivo "/usr/local/lib/python2.6/site-packages/botocore/hooks.py", línea 226, en emit
return self._emit (event_name, kwargs)
Archivo "/usr/local/lib/python2.6/site-packages/botocore/hooks.py", línea 209, en _emit
respuesta = manejador (** kwargs)
Archivo "/usr/local/lib/python2.6/site-packages/awscli/errorhandler.py", línea 70, en __call__
http_status_code = http_response.status_code)
ClientError: Se produjo un error de cliente (AuthorizationHeaderMalformed) al llamar a la operación ListBuckets: El encabezado de autorización está mal formado; la región 'us-east' es incorrecta; esperando 'us-east-1'
2015-04-02 10: 00: 53,944 - MainThread - awscli.clidriver - DEBUG - Saliendo con rc 255

Se produjo un error de cliente (AuthorizationHeaderMalformed) al llamar a la operación ListBuckets: El encabezado de autorización está mal formado; la región 'us-east' es incorrecta; esperando 'us-east-1'

Consejo profesional: probablemente provenga de ~ / .aws / config. Mueva este archivo temporalmente y vuelva a intentarlo. Eso me ayudó.

gracias @joshunger
Vaya a ~ / .aws / config
mover el archivo de configuración
vaya a la terminal y escriba aws configure
Agregue la identificación y la clave
tipo aws s3 ls
para ver todos los directorios

¿Fue útil esta página
0 / 5 - 0 calificaciones