<p>From local machine, we can apply Kubernetes YAML files to <a href="https://aws.amazon.com/eks/" rel="nofollow noreferrer">AWS EKS</a> using <a href="https://docs.aws.amazon.com/cli/latest/reference/eks/update-kubeconfig.html" rel="nofollow noreferrer">AWS CLI</a> + <a href="https://github.com/kubernetes-sigs/aws-iam-authenticator" rel="nofollow noreferrer">aws-iam-authenticator</a> + <a href="https://kubernetes.io/docs/reference/kubectl/kubectl/" rel="nofollow noreferrer">kubectl</a>. How to do it in Ansible Tower / AWX?</p>

<p>Understand that there are a few Ansible modules available but none seems to be able to apply Kubernetes YAML to EKS.</p>

<ul>
<li><a href="https://docs.ansible.com/ansible/latest/modules/k8s_module.html" rel="nofollow noreferrer">k8s</a> doesn't seem to support EKS at the moment.</li>
<li><a href="https://docs.ansible.com/ansible/latest/modules/aws_eks_cluster_module.html" rel="nofollow noreferrer">aws_eks_cluster</a> only allows user to manage EKS cluster (e.g. create, remove).</li>
</ul>

wltheng
<p>I think that you can possibly reach the goal via <a href="https://docs.ansible.com/ansible/latest/modules/k8s_module.html" rel="nofollow noreferrer">k8s</a> module as it natively supports <code>kubeconfig</code> parameter which you can use for EKS cluster authentication. You can follow the steps described in the official <a href="https://docs.aws.amazon.com/eks/latest/userguide/create-kubeconfig.html" rel="nofollow noreferrer">documentation</a> in order to compose <code>kubeconfig</code> file. There was a separate thread discussed on GitHub  <a href="https://github.com/ansible/ansible/issues/45858" rel="nofollow noreferrer">#45858</a> about kubernetes manifest file implementation through k8s module, however Git contributors were facing some authorization issue, therefore take a chance and look through the conversation maybe you will find some helpful suggestions.</p>
