Skip to content

Instantly share code, notes, and snippets.

@vfarcic
Created August 4, 2020 21:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save vfarcic/8ef7f6cb24001e240432cd6a82a515fd to your computer and use it in GitHub Desktop.
Save vfarcic/8ef7f6cb24001e240432cd6a82a515fd to your computer and use it in GitHub Desktop.
# Source: https://gist.github.com/8ef7f6cb24001e240432cd6a82a515fd
####################
# Create a Cluster #
####################
# Only if you did not yet clone that repository
git clone \
https://github.com/vfarcic/devops-catalog-code.git
cd devops-catalog-code
git pull
cd terraform-eks/simple
# Replace `[...]` with your access key ID`
export AWS_ACCESS_KEY_ID=[...]
# Replace `[...]` with your secret access key
export AWS_SECRET_ACCESS_KEY=[...]
terraform init
terraform apply
export KUBECONFIG=$PWD/kubeconfig
kubectl get nodes
cd ../../../
#######################
# Destroy The Cluster #
#######################
cd devops-catalog-code/terraform-eks/simple
terraform destroy
cd ../../../
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment