Aws-cli: Windows CLI -- SSLError: [Errno 2] No such file or directory

Created on 26 Sep 2017  路  5Comments  路  Source: aws/aws-cli

Getting the below error with the windows aws cli, downloaded from here. Version from pip works fine on linux.

Edit: Installing from pip onto Windows works, too. So it's just the msi's.

aws iam create-role --role-name vmimport --assume-role-policy-document --debug file://trust-policy.json
2017-09-26 15:52:11,137 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.11.160 Python/2.7.9 Windows/8 botocore/1.7.18
2017-09-26 15:52:11,137 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['iam', 'create-role', '--role-name', 'vmimport', '--assume-role-policy-document', '--debug', 'file://trust-policy.json']
2017-09-26 15:52:11,138 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_scalar_parsers at 0x035C9C30>
2017-09-26 15:52:11,138 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2017-09-26 15:52:11,138 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x033E26B0>
2017-09-26 15:52:11,140 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2017-09-26 15:52:11,140 - MainThread - botocore.session - DEBUG - Loading variable credentials_file from defaults.
2017-09-26 15:52:11,140 - MainThread - botocore.session - DEBUG - Loading variable config_file from defaults.
2017-09-26 15:52:11,141 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2017-09-26 15:52:11,141 - MainThread - botocore.session - DEBUG - Loading variable metadata_service_timeout from defaults.
2017-09-26 15:52:11,141 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2017-09-26 15:52:11,141 - MainThread - botocore.session - DEBUG - Loading variable metadata_service_num_attempts from defaults.
2017-09-26 15:52:11,141 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2017-09-26 15:52:11,141 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2017-09-26 15:52:11,142 - MainThread - botocore.session - DEBUG - Loading variable api_versions from defaults.
2017-09-26 15:52:11,144 - MainThread - botocore.loaders - DEBUG - Loading JSON file: C:\Program Files (x86)\Amazon\AWSCLI\botocore\data\iam\2010-05-08\service-2.json
2017-09-26 15:52:11,170 - MainThread - botocore.hooks - DEBUG - Event service-data-loaded.iam: calling handler <function register_retries_for_service at 0x02FD49B0>
2017-09-26 15:52:11,171 - MainThread - botocore.handlers - DEBUG - Registering retry handlers for service: iam
2017-09-26 15:52:11,174 - MainThread - botocore.hooks - DEBUG - Event building-command-table.iam: calling handler <function add_waiters at 0x035D17B0>
2017-09-26 15:52:11,187 - MainThread - botocore.loaders - DEBUG - Loading JSON file: C:\Program Files (x86)\Amazon\AWSCLI\botocore\data\iam\2010-05-08\waiters-2.json
2017-09-26 15:52:11,190 - MainThread - awscli.clidriver - DEBUG - OrderedDict([(u'path', <awscli.arguments.CLIArgument object at 0x03BC8C90>), (u'role-name', <awscli.arguments.CLIArgument object at 0x03BC8C70>), (u'assume-role-policy-document', <awscli.arguments.CLIArgument object at 0x03BC8C10>), (u'description', <awscli.arguments.CLIArgument object at 0x03BC8BF0>)])
2017-09-26 15:52:11,193 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.iam.create-role: calling handler <function add_streaming_output_arg at 0x035D10F0>
2017-09-26 15:52:11,193 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.iam.create-role: calling handler <function add_cli_input_json at 0x033EC2F0>
2017-09-26 15:52:11,198 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.iam.create-role: calling handler <function unify_paging_params at 0x0356F570>
2017-09-26 15:52:11,211 - MainThread - botocore.loaders - DEBUG - Loading JSON file: C:\Program Files (x86)\Amazon\AWSCLI\botocore\data\iam\2010-05-08\paginators-1.json
2017-09-26 15:52:11,213 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.iam.create-role: calling handler <function add_generate_skeleton at 0x0355EBF0>
2017-09-26 15:52:11,213 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.iam.create-role: calling handler <bound method CliInputJSONArgument.override_required_args of <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x03BC8B30>>
2017-09-26 15:52:11,220 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.iam.create-role: calling handler <bound method GenerateCliSkeletonArgument.override_required_args of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x03BC8F10>>
2017-09-26 15:52:11,223 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.iam.create-role.path: calling handler <function uri_param at 0x0317AD30>
2017-09-26 15:52:11,223 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.iam.create-role.role-name: calling handler <function uri_param at 0x0317AD30>
2017-09-26 15:52:11,229 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.iam.create-role: calling handler <awscli.argprocess.ParamShorthandParser object at 0x0328A8B0>
2017-09-26 15:52:11,230 - MainThread - awscli.arguments - DEBUG - Unpacked value of u'vmimport' for parameter "role_name": u'vmimport'
2017-09-26 15:52:11,233 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.iam.create-role.assume-role-policy-document: calling handler <function uri_param at 0x0317AD30>
2017-09-26 15:52:11,233 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.iam.create-role: calling handler <awscli.argprocess.ParamShorthandParser object at 0x0328A8B0>
2017-09-26 15:52:11,240 - MainThread - awscli.argprocess - DEBUG - Param assume_role_policy_document looks like JSON, not considered for param shorthand.
2017-09-26 15:52:11,243 - MainThread - awscli.arguments - DEBUG - Unpacked value of u'{\n   "Version": "2012-10-17",\n   "Statement": [\n      {\n         "Effect": "Allow",\n         "Principal": { "Service": "vmie.amazonaws.com" },\n         "Action": "sts:AssumeRole",\n         "Condition": {\n            "StringEquals":{\n               "sts:Externalid": "vmimport"\n            }\n         }\n      }\n   ]\n}' for parameter "assume_role_policy_document": u'{\n   "Version": "2012-10-17",\n   "Statement": [\n      {\n         "Effect": "Allow",\n         "Principal": { "Service": "vmie.amazonaws.com" },\n         "Action": "sts:AssumeRole",\n         "Condition": {\n            "StringEquals":{\n               "sts:Externalid": "vmimport"\n            }\n         }\n      }\n   ]\n}'
2017-09-26 15:52:11,243 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.iam.create-role.description: calling handler <function uri_param at 0x0317AD30>
2017-09-26 15:52:11,250 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.iam.create-role.cli-input-json: calling handler <function uri_param at 0x0317AD30>
2017-09-26 15:52:11,250 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.iam.create-role.generate-cli-skeleton: calling handler <function uri_param at 0x0317AD30>
2017-09-26 15:52:11,255 - MainThread - botocore.hooks - DEBUG - Event calling-command.iam.create-role: calling handler <bound method CliInputJSONArgument.add_to_call_parameters of <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x03BC8B30>>
2017-09-26 15:52:11,260 - MainThread - botocore.hooks - DEBUG - Event calling-command.iam.create-role: calling handler <bound method GenerateCliSkeletonArgument.generate_json_skeleton of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x03BC8F10>>
2017-09-26 15:52:11,260 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2017-09-26 15:52:11,266 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2017-09-26 15:52:11,266 - MainThread - botocore.session - DEBUG - Loading variable region from config file with value 'us-west-2'.
2017-09-26 15:52:11,273 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2017-09-26 15:52:11,275 - MainThread - botocore.session - DEBUG - Loading variable ca_bundle from defaults.
2017-09-26 15:52:11,276 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2017-09-26 15:52:11,282 - MainThread - botocore.session - DEBUG - Loading variable api_versions from defaults.
2017-09-26 15:52:11,282 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: env
2017-09-26 15:52:11,286 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: assume-role
2017-09-26 15:52:11,286 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: shared-credentials-file
2017-09-26 15:52:11,292 - MainThread - botocore.credentials - INFO - Found credentials in shared credentials file: ~/.aws/credentials
2017-09-26 15:52:11,293 - MainThread - botocore.loaders - DEBUG - Loading JSON file: C:\Program Files (x86)\Amazon\AWSCLI\botocore\data\endpoints.json
2017-09-26 15:52:11,308 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2017-09-26 15:52:11,312 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.iam: calling handler <function add_generate_presigned_url at 0x02FB22F0>
2017-09-26 15:52:11,313 - MainThread - botocore.regions - DEBUG - Using partition endpoint for iam, us-west-2: aws-global
2017-09-26 15:52:11,316 - MainThread - botocore.args - DEBUG - The s3 config key is not a dictionary type, ignoring its value of: None
2017-09-26 15:52:11,326 - MainThread - botocore.endpoint - DEBUG - Setting iam timeout as (60, 60)
2017-09-26 15:52:11,328 - MainThread - botocore.client - DEBUG - Registering retry handlers for service: iam
2017-09-26 15:52:11,328 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.iam.CreateRole: calling handler <function generate_idempotent_uuid at 0x02FD46B0>
2017-09-26 15:52:11,334 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=CreateRole) (verify_ssl=True) with params: {'body': {'Action': u'CreateRole', u'RoleName': u'vmimport', 'Version': u'2010-05-08', u'AssumeRolePolicyDocument': u'{\n   "Version": "2012-10-17",\n   "Statement": [\n      {\n         "Effect": "Allow",\n         "Principal": { "Service": "vmie.amazonaws.com" },\n         "Action": "sts:AssumeRole",\n         "Condition": {\n            "StringEquals":{\n               "sts:Externalid": "vmimport"\n            }\n         }\n      }\n   ]\n}'}, 'url': u'https://iam.amazonaws.com/', 'headers': {'User-Agent': 'aws-cli/1.11.160 Python/2.7.9 Windows/8 botocore/1.7.18'}, 'context': {'auth_type': None, 'client_region': u'aws-global', 'has_streaming_input': False, 'client_config': <botocore.config.Config object at 0x03D22DD0>}, 'query_string': '', 'url_path': '/', 'method': u'POST'}
2017-09-26 15:52:11,336 - MainThread - botocore.hooks - DEBUG - Event request-created.iam.CreateRole: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x03D22DF0>>
2017-09-26 15:52:11,338 - MainThread - botocore.hooks - DEBUG - Event choose-signer.iam.CreateRole: calling handler <function set_operation_specific_signer at 0x02FD4630>
2017-09-26 15:52:11,344 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2017-09-26 15:52:11,345 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
POST
/

host:iam.amazonaws.com
x-amz-date:20170926T215211Z

host;x-amz-date
3ed8472676ac2cb05d01623689d8be011098f62c37667b5d5bc31c8bd400cd43
2017-09-26 15:52:11,345 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20170926T215211Z
20170926/us-east-1/iam/aws4_request
d5494f9d6cd1d94377a12ebb6f6f9037fc5d6197683da5102e378abbf2579c50
2017-09-26 15:52:11,349 - MainThread - botocore.auth - DEBUG - Signature:
480b2f290e52fe942b42791bb5ebff132f5703c36952a55ca9baf3bf89c5a699
2017-09-26 15:52:11,357 - MainThread - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [POST]>
2017-09-26 15:52:11,358 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Starting new HTTPS connection (1): iam.amazonaws.com
2017-09-26 15:52:11,970 - MainThread - botocore.endpoint - DEBUG - ConnectionError received when sending HTTP request.
Traceback (most recent call last):
  File "botocore\endpoint.pyc", line 204, in _get_response
  File "botocore\vendored\requests\sessions.pyc", line 573, in send
  File "botocore\vendored\requests\adapters.pyc", line 431, in send
SSLError: [Errno 2] No such file or directory
2017-09-26 15:52:11,970 - MainThread - botocore.hooks - DEBUG - Event needs-retry.iam.CreateRole: calling handler <botocore.retryhandler.RetryHandler object at 0x03B55CD0>
2017-09-26 15:52:11,970 - MainThread - botocore.retryhandler - DEBUG - retry needed, retryable exception caught: [Errno 2] No such file or directory
Traceback (most recent call last):
  File "botocore\retryhandler.pyc", line 269, in _should_retry
  File "botocore\retryhandler.pyc", line 317, in __call__
  File "botocore\retryhandler.pyc", line 223, in __call__
  File "botocore\retryhandler.pyc", line 359, in _check_caught_exception
SSLError: [Errno 2] No such file or directory
2017-09-26 15:52:11,971 - MainThread - botocore.retryhandler - DEBUG - Retry needed, action of: 0.260558852334
2017-09-26 15:52:11,973 - MainThread - botocore.endpoint - DEBUG - Response received to retry, sleeping for 0.260558852334 seconds
2017-09-26 15:52:12,233 - MainThread - botocore.hooks - DEBUG - Event request-created.iam.CreateRole: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x03D22DF0>>
2017-09-26 15:52:12,233 - MainThread - botocore.hooks - DEBUG - Event choose-signer.iam.CreateRole: calling handler <function set_operation_specific_signer at 0x02FD4630>
2017-09-26 15:52:12,236 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2017-09-26 15:52:12,236 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
POST
/

host:iam.amazonaws.com
x-amz-date:20170926T215212Z

host;x-amz-date
3ed8472676ac2cb05d01623689d8be011098f62c37667b5d5bc31c8bd400cd43
2017-09-26 15:52:12,236 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20170926T215212Z
20170926/us-east-1/iam/aws4_request
2feedd3e4d9194acfd3c85ca9ade399179eea05a15d38b599f13859af2cff47c
2017-09-26 15:52:12,237 - MainThread - botocore.auth - DEBUG - Signature:
5acfeb60c88e8b5dc5131a85f163b32a717e37cb27d7fe527ddc61d7c90b7b51
2017-09-26 15:52:12,239 - MainThread - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [POST]>
2017-09-26 15:52:12,239 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Starting new HTTPS connection (2): iam.amazonaws.com
2017-09-26 15:52:12,286 - MainThread - botocore.endpoint - DEBUG - ConnectionError received when sending HTTP request.
Traceback (most recent call last):
  File "botocore\endpoint.pyc", line 204, in _get_response
  File "botocore\vendored\requests\sessions.pyc", line 573, in send
  File "botocore\vendored\requests\adapters.pyc", line 431, in send
SSLError: [Errno 2] No such file or directory
2017-09-26 15:52:12,286 - MainThread - botocore.hooks - DEBUG - Event needs-retry.iam.CreateRole: calling handler <botocore.retryhandler.RetryHandler object at 0x03B55CD0>
2017-09-26 15:52:12,286 - MainThread - botocore.retryhandler - DEBUG - retry needed, retryable exception caught: [Errno 2] No such file or directory
Traceback (most recent call last):
  File "botocore\retryhandler.pyc", line 269, in _should_retry
  File "botocore\retryhandler.pyc", line 317, in __call__
  File "botocore\retryhandler.pyc", line 223, in __call__
  File "botocore\retryhandler.pyc", line 359, in _check_caught_exception
SSLError: [Errno 2] No such file or directory
2017-09-26 15:52:12,288 - MainThread - botocore.retryhandler - DEBUG - Retry needed, action of: 1.15722557731
2017-09-26 15:52:12,289 - MainThread - botocore.endpoint - DEBUG - Response received to retry, sleeping for 1.15722557731 seconds
2017-09-26 15:52:13,447 - MainThread - botocore.hooks - DEBUG - Event request-created.iam.CreateRole: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x03D22DF0>>
2017-09-26 15:52:13,447 - MainThread - botocore.hooks - DEBUG - Event choose-signer.iam.CreateRole: calling handler <function set_operation_specific_signer at 0x02FD4630>
2017-09-26 15:52:13,448 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2017-09-26 15:52:13,450 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
POST
/

host:iam.amazonaws.com
x-amz-date:20170926T215213Z

host;x-amz-date
3ed8472676ac2cb05d01623689d8be011098f62c37667b5d5bc31c8bd400cd43
2017-09-26 15:52:13,450 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20170926T215213Z
20170926/us-east-1/iam/aws4_request
faee1715a4e60c33f218e3f95b68d900892de590fe3773a4d4c936f4f2660905
2017-09-26 15:52:13,451 - MainThread - botocore.auth - DEBUG - Signature:
6b9b7b0be7597d1ae8cc33cd1d1a18821c734fc15ee0e88795c820e99d952de2
2017-09-26 15:52:13,453 - MainThread - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [POST]>
2017-09-26 15:52:13,453 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Starting new HTTPS connection (3): iam.amazonaws.com
2017-09-26 15:52:13,499 - MainThread - botocore.endpoint - DEBUG - ConnectionError received when sending HTTP request.
Traceback (most recent call last):
  File "botocore\endpoint.pyc", line 204, in _get_response
  File "botocore\vendored\requests\sessions.pyc", line 573, in send
  File "botocore\vendored\requests\adapters.pyc", line 431, in send
SSLError: [Errno 2] No such file or directory
2017-09-26 15:52:13,500 - MainThread - botocore.hooks - DEBUG - Event needs-retry.iam.CreateRole: calling handler <botocore.retryhandler.RetryHandler object at 0x03B55CD0>
2017-09-26 15:52:13,500 - MainThread - botocore.retryhandler - DEBUG - retry needed, retryable exception caught: [Errno 2] No such file or directory
Traceback (most recent call last):
  File "botocore\retryhandler.pyc", line 269, in _should_retry
  File "botocore\retryhandler.pyc", line 317, in __call__
  File "botocore\retryhandler.pyc", line 223, in __call__
  File "botocore\retryhandler.pyc", line 359, in _check_caught_exception
SSLError: [Errno 2] No such file or directory
2017-09-26 15:52:13,500 - MainThread - botocore.retryhandler - DEBUG - Retry needed, action of: 1.66295833967
2017-09-26 15:52:13,502 - MainThread - botocore.endpoint - DEBUG - Response received to retry, sleeping for 1.66295833967 seconds
2017-09-26 15:52:15,165 - MainThread - botocore.hooks - DEBUG - Event request-created.iam.CreateRole: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x03D22DF0>>
2017-09-26 15:52:15,165 - MainThread - botocore.hooks - DEBUG - Event choose-signer.iam.CreateRole: calling handler <function set_operation_specific_signer at 0x02FD4630>
2017-09-26 15:52:15,167 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2017-09-26 15:52:15,168 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
POST
/

host:iam.amazonaws.com
x-amz-date:20170926T215215Z

host;x-amz-date
3ed8472676ac2cb05d01623689d8be011098f62c37667b5d5bc31c8bd400cd43
2017-09-26 15:52:15,170 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20170926T215215Z
20170926/us-east-1/iam/aws4_request
37c4799f9676ecef758d855be76c048747704e6d2ee90f99191e979655c74b00
2017-09-26 15:52:15,170 - MainThread - botocore.auth - DEBUG - Signature:
4813a860cc2645903fd26bf780952d58a718ede377a7296aa94b2e38f74c04cb
2017-09-26 15:52:15,171 - MainThread - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [POST]>
2017-09-26 15:52:15,171 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Starting new HTTPS connection (4): iam.amazonaws.com
2017-09-26 15:52:15,217 - MainThread - botocore.endpoint - DEBUG - ConnectionError received when sending HTTP request.
Traceback (most recent call last):
  File "botocore\endpoint.pyc", line 204, in _get_response
  File "botocore\vendored\requests\sessions.pyc", line 573, in send
  File "botocore\vendored\requests\adapters.pyc", line 431, in send
SSLError: [Errno 2] No such file or directory
2017-09-26 15:52:15,217 - MainThread - botocore.hooks - DEBUG - Event needs-retry.iam.CreateRole: calling handler <botocore.retryhandler.RetryHandler object at 0x03B55CD0>
2017-09-26 15:52:15,217 - MainThread - botocore.retryhandler - DEBUG - retry needed, retryable exception caught: [Errno 2] No such file or directory
Traceback (most recent call last):
  File "botocore\retryhandler.pyc", line 269, in _should_retry
  File "botocore\retryhandler.pyc", line 317, in __call__
  File "botocore\retryhandler.pyc", line 223, in __call__
  File "botocore\retryhandler.pyc", line 359, in _check_caught_exception
SSLError: [Errno 2] No such file or directory
2017-09-26 15:52:15,219 - MainThread - botocore.retryhandler - DEBUG - Retry needed, action of: 1.17463021653
2017-09-26 15:52:15,220 - MainThread - botocore.endpoint - DEBUG - Response received to retry, sleeping for 1.17463021653 seconds


C:\Users\deargle>aws iam create-role --role-name vmimport --assume-role-policy-document --debug file://trust-policy.json > debug.txt
2017-09-26 15:52:19,249 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.11.160 Python/2.7.9 Windows/8 botocore/1.7.18
2017-09-26 15:52:19,249 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['iam', 'create-role', '--role-name', 'vmimport', '--assume-role-policy-document', '--debug', 'file://trust-policy.json']
2017-09-26 15:52:19,250 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_scalar_parsers at 0x034F9C30>
2017-09-26 15:52:19,250 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2017-09-26 15:52:19,250 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x033116B0>
2017-09-26 15:52:19,250 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2017-09-26 15:52:19,252 - MainThread - botocore.session - DEBUG - Loading variable credentials_file from defaults.
2017-09-26 15:52:19,253 - MainThread - botocore.session - DEBUG - Loading variable config_file from defaults.
2017-09-26 15:52:19,253 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2017-09-26 15:52:19,255 - MainThread - botocore.session - DEBUG - Loading variable metadata_service_timeout from defaults.
2017-09-26 15:52:19,255 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2017-09-26 15:52:19,256 - MainThread - botocore.session - DEBUG - Loading variable metadata_service_num_attempts from defaults.
2017-09-26 15:52:19,256 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2017-09-26 15:52:19,256 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2017-09-26 15:52:19,259 - MainThread - botocore.session - DEBUG - Loading variable api_versions from defaults.
2017-09-26 15:52:19,266 - MainThread - botocore.loaders - DEBUG - Loading JSON file: C:\Program Files (x86)\Amazon\AWSCLI\botocore\data\iam\2010-05-08\service-2.json
2017-09-26 15:52:19,292 - MainThread - botocore.hooks - DEBUG - Event service-data-loaded.iam: calling handler <function register_retries_for_service at 0x02F049B0>
2017-09-26 15:52:19,293 - MainThread - botocore.handlers - DEBUG - Registering retry handlers for service: iam
2017-09-26 15:52:19,296 - MainThread - botocore.hooks - DEBUG - Event building-command-table.iam: calling handler <function add_waiters at 0x035017B0>
2017-09-26 15:52:19,309 - MainThread - botocore.loaders - DEBUG - Loading JSON file: C:\Program Files (x86)\Amazon\AWSCLI\botocore\data\iam\2010-05-08\waiters-2.json
2017-09-26 15:52:19,311 - MainThread - awscli.clidriver - DEBUG - OrderedDict([(u'path', <awscli.arguments.CLIArgument object at 0x03B58C70>), (u'role-name', <awscli.arguments.CLIArgument object at 0x03B58C50>), (u'assume-role-policy-document', <awscli.arguments.CLIArgument object at 0x03B58BF0>), (u'description', <awscli.arguments.CLIArgument object at 0x03B58BD0>)])
2017-09-26 15:52:19,312 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.iam.create-role: calling handler <function add_streaming_output_arg at 0x035010F0>
2017-09-26 15:52:19,325 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.iam.create-role: calling handler <function add_cli_input_json at 0x0331C2F0>
2017-09-26 15:52:19,325 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.iam.create-role: calling handler <function unify_paging_params at 0x0349F570>
2017-09-26 15:52:19,345 - MainThread - botocore.loaders - DEBUG - Loading JSON file: C:\Program Files (x86)\Amazon\AWSCLI\botocore\data\iam\2010-05-08\paginators-1.json
2017-09-26 15:52:19,345 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.iam.create-role: calling handler <function add_generate_skeleton at 0x0348EBF0>
2017-09-26 15:52:19,345 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.iam.create-role: calling handler <bound method CliInputJSONArgument.override_required_args of <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x03B58B10>>
2017-09-26 15:52:19,346 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.iam.create-role: calling handler <bound method GenerateCliSkeletonArgument.override_required_args of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x03B58EF0>>
2017-09-26 15:52:19,348 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.iam.create-role.path: calling handler <function uri_param at 0x030AAD30>
2017-09-26 15:52:19,348 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.iam.create-role.role-name: calling handler <function uri_param at 0x030AAD30>
2017-09-26 15:52:19,348 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.iam.create-role: calling handler <awscli.argprocess.ParamShorthandParser object at 0x031BA890>
2017-09-26 15:52:19,349 - MainThread - awscli.arguments - DEBUG - Unpacked value of u'vmimport' for parameter "role_name": u'vmimport'
2017-09-26 15:52:19,349 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.iam.create-role.assume-role-policy-document: calling handler <function uri_param at 0x030AAD30>
2017-09-26 15:52:19,351 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.iam.create-role: calling handler <awscli.argprocess.ParamShorthandParser object at 0x031BA890>
2017-09-26 15:52:19,351 - MainThread - awscli.argprocess - DEBUG - Param assume_role_policy_document looks like JSON, not considered for param shorthand.
2017-09-26 15:52:19,355 - MainThread - awscli.arguments - DEBUG - Unpacked value of u'{\n   "Version": "2012-10-17",\n   "Statement": [\n      {\n         "Effect": "Allow",\n         "Principal": { "Service": "vmie.amazonaws.com" },\n         "Action": "sts:AssumeRole",\n         "Condition": {\n            "StringEquals":{\n               "sts:Externalid": "vmimport"\n            }\n         }\n      }\n   ]\n}' for parameter "assume_role_policy_document": u'{\n   "Version": "2012-10-17",\n   "Statement": [\n      {\n         "Effect": "Allow",\n         "Principal": { "Service": "vmie.amazonaws.com" },\n         "Action": "sts:AssumeRole",\n         "Condition": {\n            "StringEquals":{\n               "sts:Externalid": "vmimport"\n            }\n         }\n      }\n   ]\n}'
2017-09-26 15:52:19,361 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.iam.create-role.description: calling handler <function uri_param at 0x030AAD30>
2017-09-26 15:52:19,361 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.iam.create-role.cli-input-json: calling handler <function uri_param at 0x030AAD30>
2017-09-26 15:52:19,361 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.iam.create-role.generate-cli-skeleton: calling handler <function uri_param at 0x030AAD30>
2017-09-26 15:52:19,362 - MainThread - botocore.hooks - DEBUG - Event calling-command.iam.create-role: calling handler <bound method CliInputJSONArgument.add_to_call_parameters of <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x03B58B10>>
2017-09-26 15:52:19,362 - MainThread - botocore.hooks - DEBUG - Event calling-command.iam.create-role: calling handler <bound method GenerateCliSkeletonArgument.generate_json_skeleton of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x03B58EF0>>
2017-09-26 15:52:19,364 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2017-09-26 15:52:19,367 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2017-09-26 15:52:19,372 - MainThread - botocore.session - DEBUG - Loading variable region from config file with value 'us-west-2'.
2017-09-26 15:52:19,374 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2017-09-26 15:52:19,375 - MainThread - botocore.session - DEBUG - Loading variable ca_bundle from defaults.
2017-09-26 15:52:19,375 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2017-09-26 15:52:19,377 - MainThread - botocore.session - DEBUG - Loading variable api_versions from defaults.
2017-09-26 15:52:19,382 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: env
2017-09-26 15:52:19,384 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: assume-role
2017-09-26 15:52:19,384 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: shared-credentials-file
2017-09-26 15:52:19,388 - MainThread - botocore.credentials - INFO - Found credentials in shared credentials file: ~/.aws/credentials
2017-09-26 15:52:19,388 - MainThread - botocore.loaders - DEBUG - Loading JSON file: C:\Program Files (x86)\Amazon\AWSCLI\botocore\data\endpoints.json
2017-09-26 15:52:19,407 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2017-09-26 15:52:19,411 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.iam: calling handler <function add_generate_presigned_url at 0x02EE22F0>
2017-09-26 15:52:19,413 - MainThread - botocore.regions - DEBUG - Using partition endpoint for iam, us-west-2: aws-global
2017-09-26 15:52:19,413 - MainThread - botocore.args - DEBUG - The s3 config key is not a dictionary type, ignoring its value of: None
2017-09-26 15:52:19,417 - MainThread - botocore.endpoint - DEBUG - Setting iam timeout as (60, 60)
2017-09-26 15:52:19,418 - MainThread - botocore.client - DEBUG - Registering retry handlers for service: iam
2017-09-26 15:52:19,424 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.iam.CreateRole: calling handler <function generate_idempotent_uuid at 0x02F046B0>
2017-09-26 15:52:19,426 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=CreateRole) (verify_ssl=True) with params: {'body': {'Action': u'CreateRole', u'RoleName': u'vmimport', 'Version': u'2010-05-08', u'AssumeRolePolicyDocument': u'{\n   "Version": "2012-10-17",\n   "Statement": [\n      {\n         "Effect": "Allow",\n         "Principal": { "Service": "vmie.amazonaws.com" },\n         "Action": "sts:AssumeRole",\n         "Condition": {\n            "StringEquals":{\n               "sts:Externalid": "vmimport"\n            }\n         }\n      }\n   ]\n}'}, 'url': u'https://iam.amazonaws.com/', 'headers': {'User-Agent': 'aws-cli/1.11.160 Python/2.7.9 Windows/8 botocore/1.7.18'}, 'context': {'auth_type': None, 'client_region': u'aws-global', 'has_streaming_input': False, 'client_config': <botocore.config.Config object at 0x03CB6DB0>}, 'query_string': '', 'url_path': '/', 'method': u'POST'}
2017-09-26 15:52:19,427 - MainThread - botocore.hooks - DEBUG - Event request-created.iam.CreateRole: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x03CB6DD0>>
2017-09-26 15:52:19,427 - MainThread - botocore.hooks - DEBUG - Event choose-signer.iam.CreateRole: calling handler <function set_operation_specific_signer at 0x02F04630>
2017-09-26 15:52:19,434 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2017-09-26 15:52:19,434 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
POST
/

host:iam.amazonaws.com
x-amz-date:20170926T215219Z

host;x-amz-date
3ed8472676ac2cb05d01623689d8be011098f62c37667b5d5bc31c8bd400cd43
2017-09-26 15:52:19,438 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20170926T215219Z
20170926/us-east-1/iam/aws4_request
8580264612cae940824de83c73e54fabba8e8951f01515b0dd68d4824ce10ca7
2017-09-26 15:52:19,444 - MainThread - botocore.auth - DEBUG - Signature:
461ff4a8410b1ad922e1228287314a04af1776609540868339e2c83ad0725905
2017-09-26 15:52:19,447 - MainThread - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [POST]>
2017-09-26 15:52:19,450 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Starting new HTTPS connection (1): iam.amazonaws.com
2017-09-26 15:52:20,069 - MainThread - botocore.endpoint - DEBUG - ConnectionError received when sending HTTP request.
Traceback (most recent call last):
  File "botocore\endpoint.pyc", line 204, in _get_response
  File "botocore\vendored\requests\sessions.pyc", line 573, in send
  File "botocore\vendored\requests\adapters.pyc", line 431, in send
SSLError: [Errno 2] No such file or directory
2017-09-26 15:52:20,069 - MainThread - botocore.hooks - DEBUG - Event needs-retry.iam.CreateRole: calling handler <botocore.retryhandler.RetryHandler object at 0x03AE5CB0>
2017-09-26 15:52:20,071 - MainThread - botocore.retryhandler - DEBUG - retry needed, retryable exception caught: [Errno 2] No such file or directory
Traceback (most recent call last):
  File "botocore\retryhandler.pyc", line 269, in _should_retry
  File "botocore\retryhandler.pyc", line 317, in __call__
  File "botocore\retryhandler.pyc", line 223, in __call__
  File "botocore\retryhandler.pyc", line 359, in _check_caught_exception
SSLError: [Errno 2] No such file or directory
2017-09-26 15:52:20,072 - MainThread - botocore.retryhandler - DEBUG - Retry needed, action of: 0.408437319099
2017-09-26 15:52:20,072 - MainThread - botocore.endpoint - DEBUG - Response received to retry, sleeping for 0.408437319099 seconds
2017-09-26 15:52:20,480 - MainThread - botocore.hooks - DEBUG - Event request-created.iam.CreateRole: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x03CB6DD0>>
2017-09-26 15:52:20,480 - MainThread - botocore.hooks - DEBUG - Event choose-signer.iam.CreateRole: calling handler <function set_operation_specific_signer at 0x02F04630>
2017-09-26 15:52:20,483 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2017-09-26 15:52:20,483 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
POST
/

host:iam.amazonaws.com
x-amz-date:20170926T215220Z

host;x-amz-date
3ed8472676ac2cb05d01623689d8be011098f62c37667b5d5bc31c8bd400cd43
2017-09-26 15:52:20,483 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20170926T215220Z
20170926/us-east-1/iam/aws4_request
c9c5fd8d3dd3247fae77f2fb36b2c1843592528a47c8574f092b1d6739526e71
2017-09-26 15:52:20,486 - MainThread - botocore.auth - DEBUG - Signature:
db7a353affda0ff95769fb12736f49746a682224be5cf2add2a7024088c67b98
2017-09-26 15:52:20,486 - MainThread - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [POST]>
2017-09-26 15:52:20,486 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Starting new HTTPS connection (2): iam.amazonaws.com
2017-09-26 15:52:20,532 - MainThread - botocore.endpoint - DEBUG - ConnectionError received when sending HTTP request.
Traceback (most recent call last):
  File "botocore\endpoint.pyc", line 204, in _get_response
  File "botocore\vendored\requests\sessions.pyc", line 573, in send
  File "botocore\vendored\requests\adapters.pyc", line 431, in send
SSLError: [Errno 2] No such file or directory
2017-09-26 15:52:20,533 - MainThread - botocore.hooks - DEBUG - Event needs-retry.iam.CreateRole: calling handler <botocore.retryhandler.RetryHandler object at 0x03AE5CB0>
2017-09-26 15:52:20,535 - MainThread - botocore.retryhandler - DEBUG - retry needed, retryable exception caught: [Errno 2] No such file or directory
Traceback (most recent call last):
  File "botocore\retryhandler.pyc", line 269, in _should_retry
  File "botocore\retryhandler.pyc", line 317, in __call__
  File "botocore\retryhandler.pyc", line 223, in __call__
  File "botocore\retryhandler.pyc", line 359, in _check_caught_exception
SSLError: [Errno 2] No such file or directory
2017-09-26 15:52:20,536 - MainThread - botocore.retryhandler - DEBUG - Retry needed, action of: 0.245834718757
2017-09-26 15:52:20,536 - MainThread - botocore.endpoint - DEBUG - Response received to retry, sleeping for 0.245834718757 seconds
2017-09-26 15:52:20,782 - MainThread - botocore.hooks - DEBUG - Event request-created.iam.CreateRole: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x03CB6DD0>>
2017-09-26 15:52:20,782 - MainThread - botocore.hooks - DEBUG - Event choose-signer.iam.CreateRole: calling handler <function set_operation_specific_signer at 0x02F04630>
2017-09-26 15:52:20,783 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2017-09-26 15:52:20,783 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
POST
/

host:iam.amazonaws.com
x-amz-date:20170926T215220Z

host;x-amz-date
3ed8472676ac2cb05d01623689d8be011098f62c37667b5d5bc31c8bd400cd43
2017-09-26 15:52:20,785 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20170926T215220Z
20170926/us-east-1/iam/aws4_request
c9c5fd8d3dd3247fae77f2fb36b2c1843592528a47c8574f092b1d6739526e71
2017-09-26 15:52:20,786 - MainThread - botocore.auth - DEBUG - Signature:
db7a353affda0ff95769fb12736f49746a682224be5cf2add2a7024088c67b98
2017-09-26 15:52:20,786 - MainThread - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [POST]>
2017-09-26 15:52:20,788 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Starting new HTTPS connection (3): iam.amazonaws.com
2017-09-26 15:52:20,834 - MainThread - botocore.endpoint - DEBUG - ConnectionError received when sending HTTP request.
Traceback (most recent call last):
  File "botocore\endpoint.pyc", line 204, in _get_response
  File "botocore\vendored\requests\sessions.pyc", line 573, in send
  File "botocore\vendored\requests\adapters.pyc", line 431, in send
SSLError: [Errno 2] No such file or directory
2017-09-26 15:52:20,834 - MainThread - botocore.hooks - DEBUG - Event needs-retry.iam.CreateRole: calling handler <botocore.retryhandler.RetryHandler object at 0x03AE5CB0>
2017-09-26 15:52:20,835 - MainThread - botocore.retryhandler - DEBUG - retry needed, retryable exception caught: [Errno 2] No such file or directory
Traceback (most recent call last):
  File "botocore\retryhandler.pyc", line 269, in _should_retry
  File "botocore\retryhandler.pyc", line 317, in __call__
  File "botocore\retryhandler.pyc", line 223, in __call__
  File "botocore\retryhandler.pyc", line 359, in _check_caught_exception
SSLError: [Errno 2] No such file or directory
2017-09-26 15:52:20,835 - MainThread - botocore.retryhandler - DEBUG - Retry needed, action of: 1.87492494244
2017-09-26 15:52:20,836 - MainThread - botocore.endpoint - DEBUG - Response received to retry, sleeping for 1.87492494244 seconds
2017-09-26 15:52:22,711 - MainThread - botocore.hooks - DEBUG - Event request-created.iam.CreateRole: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x03CB6DD0>>
2017-09-26 15:52:22,711 - MainThread - botocore.hooks - DEBUG - Event choose-signer.iam.CreateRole: calling handler <function set_operation_specific_signer at 0x02F04630>
2017-09-26 15:52:22,713 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2017-09-26 15:52:22,713 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
POST
/

host:iam.amazonaws.com
x-amz-date:20170926T215222Z

host;x-amz-date
3ed8472676ac2cb05d01623689d8be011098f62c37667b5d5bc31c8bd400cd43
2017-09-26 15:52:22,714 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20170926T215222Z
20170926/us-east-1/iam/aws4_request
d362c81d92db9169a4a39ac1012e6b7ee9bbb023d575778224a0e9da34631e01
2017-09-26 15:52:22,716 - MainThread - botocore.auth - DEBUG - Signature:
50926ae290f4e7b8139f151cda15f916854db4042928b46500bae57a9eda8bae
2017-09-26 15:52:22,716 - MainThread - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [POST]>
2017-09-26 15:52:22,717 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Starting new HTTPS connection (4): iam.amazonaws.com
2017-09-26 15:52:22,763 - MainThread - botocore.endpoint - DEBUG - ConnectionError received when sending HTTP request.
Traceback (most recent call last):
  File "botocore\endpoint.pyc", line 204, in _get_response
  File "botocore\vendored\requests\sessions.pyc", line 573, in send
  File "botocore\vendored\requests\adapters.pyc", line 431, in send
SSLError: [Errno 2] No such file or directory
2017-09-26 15:52:22,763 - MainThread - botocore.hooks - DEBUG - Event needs-retry.iam.CreateRole: calling handler <botocore.retryhandler.RetryHandler object at 0x03AE5CB0>
2017-09-26 15:52:22,765 - MainThread - botocore.retryhandler - DEBUG - retry needed, retryable exception caught: [Errno 2] No such file or directory
Traceback (most recent call last):
  File "botocore\retryhandler.pyc", line 269, in _should_retry
  File "botocore\retryhandler.pyc", line 317, in __call__
  File "botocore\retryhandler.pyc", line 223, in __call__
  File "botocore\retryhandler.pyc", line 359, in _check_caught_exception
SSLError: [Errno 2] No such file or directory
2017-09-26 15:52:22,766 - MainThread - botocore.retryhandler - DEBUG - Retry needed, action of: 1.21131880222
2017-09-26 15:52:22,766 - MainThread - botocore.endpoint - DEBUG - Response received to retry, sleeping for 1.21131880222 seconds
2017-09-26 15:52:23,977 - MainThread - botocore.hooks - DEBUG - Event request-created.iam.CreateRole: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x03CB6DD0>>
2017-09-26 15:52:23,977 - MainThread - botocore.hooks - DEBUG - Event choose-signer.iam.CreateRole: calling handler <function set_operation_specific_signer at 0x02F04630>
2017-09-26 15:52:23,980 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2017-09-26 15:52:23,980 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
POST
/

host:iam.amazonaws.com
x-amz-date:20170926T215223Z

host;x-amz-date
3ed8472676ac2cb05d01623689d8be011098f62c37667b5d5bc31c8bd400cd43
2017-09-26 15:52:23,980 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20170926T215223Z
20170926/us-east-1/iam/aws4_request
22594a3fe762a982b1044d4388d7c500c8a1375f6687e6c17f3311bd7fc609b4
2017-09-26 15:52:23,982 - MainThread - botocore.auth - DEBUG - Signature:
60439d2587a301dc77a85532808d29fbd0af7f6089ec3b7ab708709123b69e50
2017-09-26 15:52:23,983 - MainThread - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [POST]>
2017-09-26 15:52:23,983 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Starting new HTTPS connection (5): iam.amazonaws.com
2017-09-26 15:52:24,030 - MainThread - botocore.endpoint - DEBUG - ConnectionError received when sending HTTP request.
Traceback (most recent call last):
  File "botocore\endpoint.pyc", line 204, in _get_response
  File "botocore\vendored\requests\sessions.pyc", line 573, in send
  File "botocore\vendored\requests\adapters.pyc", line 431, in send
SSLError: [Errno 2] No such file or directory
2017-09-26 15:52:24,032 - MainThread - botocore.hooks - DEBUG - Event needs-retry.iam.CreateRole: calling handler <botocore.retryhandler.RetryHandler object at 0x03AE5CB0>
2017-09-26 15:52:24,032 - MainThread - awscli.clidriver - DEBUG - Exception caught in main()
Traceback (most recent call last):
  File "awscli\clidriver.pyc", line 200, in main
  File "awscli\clidriver.pyc", line 338, in __call__
  File "awscli\clidriver.pyc", line 508, in __call__
  File "awscli\clidriver.pyc", line 627, in invoke
  File "awscli\clidriver.pyc", line 639, in _make_client_call
  File "botocore\client.pyc", line 312, in _api_call
  File "botocore\client.pyc", line 588, in _make_api_call
  File "botocore\endpoint.pyc", line 141, in make_request
  File "botocore\endpoint.pyc", line 170, in _send_request
  File "botocore\endpoint.pyc", line 249, in _needs_retry
  File "botocore\hooks.pyc", line 227, in emit
  File "botocore\hooks.pyc", line 210, in _emit
  File "botocore\retryhandler.pyc", line 183, in __call__
  File "botocore\retryhandler.pyc", line 251, in __call__
  File "botocore\retryhandler.pyc", line 277, in _should_retry
  File "botocore\retryhandler.pyc", line 317, in __call__
  File "botocore\retryhandler.pyc", line 223, in __call__
  File "botocore\retryhandler.pyc", line 359, in _check_caught_exception
SSLError: [Errno 2] No such file or directory
2017-09-26 15:52:24,033 - MainThread - awscli.clidriver - DEBUG - Exiting with rc 255

[Errno 2] No such file or directory
bug

Most helpful comment

Temporary fix... Run this in a DOS window:

copy "c:\Program Files\Amazon\AWSCLI\botocore\vendoredrequests\cacert.pem" "c:\Program Files\Amazon\AWSCLI\certifi"

All 5 comments

Temporary fix... Run this in a DOS window:

copy "c:\Program Files\Amazon\AWSCLI\botocore\vendoredrequests\cacert.pem" "c:\Program Files\Amazon\AWSCLI\certifi"

Hi,

I get the same error message and your workaround helped out, thx!
However I would like to understand how to handle the issue in an automated environment. Will there be an updated version of the cli toolkit installer?

thx

There was an issue with the msi installers released yesterday. The installers have been rolled back to the previous version and a fix for installers going forward is in progress.

Thanks @jrotenstein , workaround worked and able to get rid of connectivity issue

Fixed versions of the MSI are out and reinstalling should fix this issue.

Was this page helpful?
0 / 5 - 0 ratings