Skip to content

Instantly share code, notes, and snippets.

@seandavi
Created April 21, 2019 19:12
Show Gist options
  • Save seandavi/419d7ca21ecdb63c8088521968679bd6 to your computer and use it in GitHub Desktop.
Save seandavi/419d7ca21ecdb63c8088521968679bd6 to your computer and use it in GitHub Desktop.
Small bash script to install eksctl and then create cluster
#!/bin/bash
# Start EKS cluster on AWS
# Install eksctl (https://eksctl.io/)
# On mac, homebrew
brew tap weaveworks/tap
brew install weaveworks/tap/eksctl
# start cluster (takes a few minutes)
eksctl create cluster --asg-access \
--full-ecr-access --alb-ingress-access \
--node-type t3.medium --name cancerdatasci-main
--tags "project=omicidx,use=science"
# describe working cluster
eksctl get cluster --name=cancerdatasci-main # [--name=<name>]
# or all clusters
eksctl get cluster
# and delete resources
#
# eksctl delete cluster cancerdatasci-main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment