<p>Using AWS CLI and typing the command Kubectl get svc</p>

<p>throws the below error "An error occurred (AccessDenied) when calling the AssumeRole operation: Access denied"</p>

<p>Can anyone provide directions on what could be causing this error?</p>

siv
<p>you should check RBAC roles and role bindings. verify the account that you are using has access to list the objects from api server</p>

<p>this is how you can check</p>

<pre><code>master $ kubectl auth can-i get svc
yes
master $

master $  kubectl auth can-i create pods --all-namespaces
yes
master $
</code></pre>
