/ansible-role-eks

Ansible role for managing AWS EKS clusters (controlplane + nodes)

Primary LanguageShellGNU General Public License v3.0GPL-3.0

ansible-role-eks

Ansible role for managing AWS EKS clusters (controlplane + nodes) with option for opt out of amazon-vpc-cni-k8s 🙌

Requirements

An AWS account and credentials with permissions to manipulate VPC, EC2, EKS, IAM.

System packages:

Dependencies

None.

Example Playbooks

EKS.yml

---
- hosts: localhost
  gather_facts: false
  vars:
    REGION: eu-west-1
    aws_access_key: "{{ AWS_ACCESS_KEY }}"
    aws_secret_key: "{{ AWS_SECRET_KEY }}"
  roles:
    - role: ansible-role-eks

Create or modify cluster
ansible-playbook EKS.yml -e eks_action=setup

Delete cluster (controlplane + nodes)
ansible-playbook EKS.yml -e eks_action=teardown

Notes

Based in the work of https://github.com/willthames/ansiblefest2018/tree/master/ansible/roles/eks