<p>im trying to setup my k8s and connect to aws, but i got this error</p>
<pre><code>    jackma@jackma-MacBook-Pro ~ %  kubectl get svc                             
E0202 23:58:23.323851   66169 memcache.go:238] couldn't get current server API group list: the server has asked for the client to provide credentials
E0202 23:58:23.822265   66169 memcache.go:238] couldn't get current server API group list: the server has asked for the client to provide credentials
E0202 23:58:24.300791   66169 memcache.go:238] couldn't get current server API group list: the server has asked for the client to provide credentials
E0202 23:58:24.794799   66169 memcache.go:238] couldn't get current server API group list: the server has asked for the client to provide credentials
E0202 23:58:25.279269   66169 memcache.go:238] couldn't get current server API group list: the server has asked for the client to provide credentials
error: You must be logged in to the server (the server has asked for the client to provide credentials)
</code></pre>
<p>also, i cannot see detail of my default profile, i got</p>
<pre><code>jackma@jackma-MacBook-Pro ~ % aws sts get-caller-identity --profile default                                               

An error occurred (InvalidClientTokenId) when calling the GetCallerIdentity operation: The security token included in the request is invalid.
</code></pre>
<p>i tried reset with <code>aws configure</code> after delete my ~/.aws/credentials, but still get this issue. I am able to log in my aws account. here is my aws credential, not sure why i met this issue.</p>
<pre><code>[default]
aws_access_key_id = ZSIB2NADXYH5MTSQ29X4
aws_secret_access_key = Wcnlg1GC8zBTuyIMoAheRKDycypSRTGjjcVWTHZv
</code></pre>

AKALawrence
<p>Try removing the front space before equal</p>
<pre><code>[default]
aws_access_key_id=ZSIB2NADXYH5MTSQ29X4
aws_secret_access_key=Wcnlg1GC8zBTuyIMoAheRKDycypSRTGjjcVWTHZv
</code></pre>
<p>If that not works remove the config files and <strong>re-configure</strong> again</p>
<pre><code>aws configure &lt;name-of-the-profile&gt; 
</code></pre>
<p>it will auto-create the files for you again and set necessary things if you manually edited anything have issues.</p>
