Overall File structure for regional dataproc section. To provision, edit the terraform.tfvars files within the folders.
├── dataproc
| ├── backend.tf
| ├── main.tf
| ├── outputs.tf
| ├── providers.tf
| ├── terraform.tfvars
| ├── variables.tf
| └── versions.tf
Declare variables in terraform.tfvars needed for provisioning
Create bucket for Dataproc cluster and add file env-variable.sh to it, it contains installation for monitoring agent. Any other environment variable can be defined via it, to make sure it is present on all nodes (primary and secondary) upon initialization.
terraform init
terraform plan
terraform apply
terraform plan
terraform destroy