yugabyte / terraform-gcp-yugabyte

A Terraform module to deploy and run YugabyteDB on GCP.
Apache License 2.0
5 stars 21 forks source link

terraform-gcp-yugabyte

A Terraform module to deploy and run YugabyteDB on Google Cloud.

Config

Usage

Init terraform first if you have not already done so.

$ terraform init

To check what changes are going to happen in the environment run the following

$ terraform plan

Now run the following to create the instances and bring up the cluster.

$ terraform apply

Once the cluster is created, you can go to the URL http://<node ip or dns name>:7000 to view the UI. You can find the node's ip or dns by running the following:

terraform state show google_compute_instance.yugabyte_node[0]

You can access the cluster UI by going to any of the following URLs.

You can check the state of the nodes at any point by running the following command.

$ terraform show

To destroy what we just created, you can run the following command.

$ terraform destroy

Note:- To make any changes in the created cluster you will need the terraform state files. So don't delete state files of Terraform.