Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 1.07 KB

README.md

File metadata and controls

36 lines (30 loc) · 1.07 KB

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