title: could not connect to aws services using aws-cli
body: <p>I am new to aws, I am trying to use aws-cli to connect aws as I am confortable with commandline, and want to use to write the script to automate the process.</p>
  
  <p>However I am getting error as below:</p>
  
  <pre><code>_
      attempt_number, caught_exception)
    File "/usr/local/lib/python2.7/site-packages/botocore/retryhandler.py", line 359, in _check_caught_exception
      raise caught_exception
  EndpointConnectionError: Could not connect to the endpoint URL: "https://ec2.ap-southeast-1a.amazonaws.com/"
  2017-07-08 20:30:52,763 - MainThread - awscli.clidriver - DEBUG - Exiting with rc 255
  
  Could not connect to the endpoint URL: "https://ec2.ap-southeast-1a.amazonaws.com/"
  </code></pre>
  
  <p>I have setup the profile user as in the config file.</p>
  
  <pre><code>[profile joey2]
  output = json
  region = ap-southeast-1a
  </code></pre>
  
  <p>the credential such as api key and secret is configured properly.</p>
  
  <p>Could someone help to figure out what is cause of this issue.
  highly appreciate for any advice?</p>