Skip to content

Instantly share code, notes, and snippets.

@vfarcic
Last active Sep 18, 2020
Embed
What would you like to do?
# Source: https://gist.github.com/0f8ba1ee61d0fe08f4d9290a17145440
####################
# Create A Cluster #
####################
# TODO: Link to the article that explains how to create the cluster
# Replace `[...]` with the GitHub organization
export GH_ORG=[...]
git clone https://github.com/$GH_ORG/cf-terraform-gke.git
cd cf-terraform-gke
# 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.
gcloud auth login
cd ..
#######################
# Destroy The Cluster #
#######################
cd cf-terraform-gke
# 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