--- title: "Terraform - Using the VAST Data Provider to Setup a Cluster" slug: "terraform-using-the-vast-data-provider-to-setup-a-cluster" description: "Deploy VAST GCP Clusters effortlessly with Terraform's provider and examples." updated: 2026-10-28T02:14:35Z published: 2026-10-28T02:14:35Z canonical: "docs.vastdata.com/terraform-using-the-vast-data-provider-to-setup-a-cluster" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.vastdata.com/llms.txt > Use this file to discover all available pages before exploring further. # Terraform - Using the VAST Data Provider to Setup a Cluster VAST Data on Cloud in GCP uses Terraform to set up the infrastructure to deploy a cluster, but we also have a VAST Data Terraform Provider: [VAST Data Terraform](https://registry.terraform.io/providers/vast-data/vastdata/latest) There is no need to replicate documentation here; examples are the best way to learn. We have examples of configuring a cluster using the Provider that you can refer to. Terraform is particularly useful with GCP, as the clusters are currently ephemeral and do not persist if shut down. So, if you frequently destroy and reapply the configuration to save on consumption, you will need an easy way to reconfigure. My example creates the following: - VAST Provider and authentication - VIP Pools for PROTOCOLS and REPLICATION - NFS view policy and NFS views - S3 view policy and S3 views - DNS configuration - Basic multi-tenant setup with tenants, users, and groups - Active Directory integration **Example:** [VAST Cluster Config Examples GitHub](https://github.com/kvietmeier/Terraform/tree/main/vastdata/complete_cluster_config) NOTE: Before attempting to apply a large configuration, ensure that Terraform is configured correctly for authentication and that the cluster is ready. **Simple Auth Check:** - [Check Terraform Authentication](https://github.com/kvietmeier/Terraform/tree/master/vastdata/simple_query) Author: Karl Vietmeier