Skip to content

Instantly share code, notes, and snippets.

@vfarcic
Last active January 18, 2022 00:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vfarcic/ddfa70d992a0a92ba63b591e72aaa6a6 to your computer and use it in GitHub Desktop.
Save vfarcic/ddfa70d992a0a92ba63b591e72aaa6a6 to your computer and use it in GitHub Desktop.
# Source: https://gist.github.com/ddfa70d992a0a92ba63b591e72aaa6a6
####################
# Create A Cluster #
####################
# TODO: Link to the article that explains how to create the cluster and install Argo CD
# Replace `[...]` with the GitHub organization
export GH_ORG=[...]
git clone https://github.com/$GH_ORG/cf-terraform-eks.git
cd cf-terraform-eks
# Open `variables.tf` and change the value of `destroy` from `true` to `false`
git add .
git commit -m "Let there be light"
git push
# Visit Codefresh.io and wait until the newly created build finished executing.
source creds
cd ..
#######################
# Destroy The Cluster #
#######################
cd cf-terraform-eks
kubectl --namespace ingress-nginx \
delete service ingress-nginx-controller
# Open `variables.tf` and change the value of `destroy` from `false` to `true`
git add .
git commit -m "Let there be darkness"
git push
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment