aws ec2 describe-instances command not working
<p>I am executing the following command </p>

<pre><code>aws ec2 describe-instances
</code></pre>

<p>The error that i am getting is:</p>

<pre><code>Could not connect to the endpoint URL: "https://ec2.us-west-2.amazonaws.com/"
</code></pre>

<p>I tried this link in my browser and it was working fine. Actually i am completely new to AWS cli and i am trying to stop, start my instances using AWS cli.</p>

<p>I have used the command <strong><em>aws configure</em></strong> and then provided my access key and secret key. In the region i have entered us-west-2 and output as json. </p>