Last active
January 18, 2022 00:24
-
-
Save vfarcic/0f8ba1ee61d0fe08f4d9290a17145440 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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