Repo to hold Terraform code for databricks on GCP.
The purpose of this solution is to automate the process of service account creation, workspace creation, unity catalog creation and creation of sample databases in workspaces.
- https://cloud.google.com/sdk/docs/install
- From gcloud shell run the following
- gcloud auth application-default login โ to logon to gcp
- Copy the url and open it in chrome
- Open gcloud shell
- SET CLOUDSDK_PYTHOn=C:\Users\PC5273\AppData\Local\Programs\Python\Python310\python
- Run the terraform
- cd service_account_creation
- RUN
terraform init
- RUN
terraform plan -var-file=variables.tfvars
- RUN
terraform apply -var-file=variables.tfvars
- Manually Add the Google service account to the Databricks on Google Cloud account - DOC_LINK
- cd workspace_creation
- RUN
terraform init
- RUN
terraform plan -var-file=variables.tfvars
- RUN
terraform apply -var-file=variables.tfvars
- cd unity_catalog_creation
- RUN
terraform init
- RUN
terraform plan -var-file=variables.tfvars
- RUN
terraform apply -var-file=variables.tfvars