This Go script provisions an Autopilot cluster in Google Cloud Platform (GCP) with two namespaces: staging and production.
Before running the script, make sure you have the following:
- Go installed on your system.
- Authentication set up for Google Cloud Platform.
- Google Cloud SDK installed and configured.
-
Clone the repository:
git clone [email protected]:steve2030/IaC-in-GO.git
-
Navigate to the directory containing the script.
-
Run the script using the following command:
go run index.go
-
Follow the prompts to provide necessary inputs.
Make sure to update the following variables in the script with your actual project details and configurations:
projectID
: Your GCP project ID.clusterName
: Name for your Autopilot cluster.region
: Region where the cluster will be deployed.zone
: Zone where the cluster will be deployed.
- cloud.google.com/go/container/apiv1
- google.golang.org/api/option
- google.golang.org/genproto/googleapis/container/v1
- google.golang.org/grpc
This project is licensed under the MIT License.