Skip to content

Commit

Permalink
Create sanitech_data_platform.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Apr 19, 2024
1 parent f16301b commit f71a9d8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions func/sanitech_data_platform.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
provider "databricks" {
alias = "example"
host = "https://example.databricks.com"
token = "example_token"
}

resource "databricks_instance_pool" "example" {
provider = databricks.example
name = "example-instance-pool"
instance_profile_id = "example_instance_profile"
size = "small"
autoscale = true
min_idle_instances = 1
max_capacity = 20
idleness_timeout_minutes = 30
}

resource "databricks_cluster" "example" {
provider = databricks.example
cluster_name = "example-cluster"
num_workers = 3
instance_pool_id = databricks_instance_pool.example.id
spark_version = "9.1.x-scala2.12"
node_type = "i3.xlarge"
}

0 comments on commit f71a9d8

Please sign in to comment.