Skip to content

MoOyeg/ansible-eks-quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ansible-eks-quickstart

Ansible Role to Deploy EKS Quickstarts

Python libraries

Install requirements

pip install --user -r requirements.txt

Export AWS Credentials

  1. Clone this repository

  2. Install requirements

pip install --user -r requirements.txt
  1. Make your AWS account credentials (AWS_ACCESS_KEY and AWS_SECRET_KEY) available as environment variables (export).
export AWS_ACCESS_KEY='...'
export AWS_SECRET_KEY='...'

4 Use the sample create file to create or delete your eks-cluster:

ansible-playbook ./sample-cf-create.yaml

Notes:

  • Add your cluster name and region to the CLUSTER_INFO VARIABLE in sample-cf-create.yaml
  • Cloudformation template expects a main cluster for every region as that's what the VPC is tied to and other eks clusters are installed in the same vpc
  • By default MAIN_CLUSTER_NAME is eks-cluster-1 you can change it by setting the MAIN_CLUSTER_NAME via the --extra-args option and also set CLUSTER_INFO

e.g ansible-playbook /root/ansible-eks-quickstart/sample-cf-create.yaml -e MAIN_CLUSTER_NAME=eks-cluster

  • To delete a cluster remove it from the CLUSTER_INFO variable
  • To delete all clusters set CLUSTER_INFO variable to empty --extra-args CLUSTER_INFO={}

About

Ansible Role to Deploy EKS Quickstarts via Cloudformation Templates

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published