<p>I am making CICD pipeline, using AWS CodeBuild to build and deploy application(service) to aws eks cluster. I have installed kubectl and aws-iam-authenticator properly,
getting <strong>aws instead of aws-iam-authenticator in command</strong></p>

<pre><code>kind: Config 
preferences: {} 
users: 
- name: arn:aws:eks:ap-south-1:*******:cluster/DevCluster 
user: 
exec: 
apiVersion: client.authentication.k8s.io/v1alpha1 
args: 
- eks 
- get-token 
- --cluster-name 
- DevCluster 
</code></pre>

<p><strong>command: aws</strong></p>

<p>env: null </p>

<p>[Container] 2019/05/14 04:32:09 Running command kubectl get svc 
<strong>error: the server doesn't have a resource type "svc"</strong></p>

<p><strong>I donot want to edit configmap manually because it comes through pipeline.</strong></p>

Priya Rani
<p>As @Priya Rani said in the comments, he found the solution.</p>

<p>There is no issue with configmap file. Its all right. </p>

<p>1) I need to make Cloudformation (cluster+nodeinstance)<strong>trusted role</strong> to communicate with Codebuild by editing trusted role. </p>

<p>2) Need to add usedata section to communicate node instance with clusters.</p>
