This repository provides a script to deploy or destroy a GKE cluster and an example Nginx application using Terraform. The Terraform state is stored in a GCS bucket.
- Google Cloud project with billing enabled.
- Permissions to create GKE clusters and GCS buckets.
- Click on the "Run in Cloud Shell" button below.
- Run the script with either "deploy" or "destroy" argument:
- To deploy:
./automate.sh deploy - To destroy:
./automate.sh destroy
- To deploy:
- When prompted, enter your Google Cloud project ID.
Click the button below to open this repository in Cloud Shell:
To destroy the infrastructure, run:
./automate.sh destroy- The script waits for the GKE cluster to be ready before deploying Nginx.