Terraform - Using the VAST Data Provider to Setup a Cluster

Prev Next

VAST Data on Cloud in GCP uses Terraform to setup the infrastructure to deploy a cluster, but we also have a VAST Data Terraform Provider:

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. Therefore, if you frequently destroy and reapply the configuration to save money on consumption, you will need a way to reconfigure easily.

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:

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:

Author: Karl Vietmeier