From 06c06f9a23811bcda009049def07a75983843679 Mon Sep 17 00:00:00 2001 From: Jason D'Amour Date: Tue, 30 May 2023 09:07:24 -0700 Subject: [PATCH] feat: support client id/secret auth --- modules/aws-workspace-with-firewall/providers.tf | 12 +++++++----- modules/aws-workspace-with-firewall/variables.tf | 6 ++++-- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/modules/aws-workspace-with-firewall/providers.tf b/modules/aws-workspace-with-firewall/providers.tf index 4fc17e29..42fc3a87 100644 --- a/modules/aws-workspace-with-firewall/providers.tf +++ b/modules/aws-workspace-with-firewall/providers.tf @@ -4,8 +4,10 @@ provider "aws" { // initialize provider in "MWS" mode to provision new workspace provider "databricks" { - alias = "mws" - host = "https://accounts.cloud.databricks.com" - username = var.databricks_account_username - password = var.databricks_account_password -} \ No newline at end of file + alias = "mws" + host = "https://accounts.cloud.databricks.com" + username = var.databricks_account_username + password = var.databricks_account_password + client_id = var.databricks_account_client_id + client_secret = var.databricks_account_client_secret +} diff --git a/modules/aws-workspace-with-firewall/variables.tf b/modules/aws-workspace-with-firewall/variables.tf index 266a13da..fc9bc100 100644 --- a/modules/aws-workspace-with-firewall/variables.tf +++ b/modules/aws-workspace-with-firewall/variables.tf @@ -1,6 +1,8 @@ +variable "databricks_account_id" {} variable "databricks_account_username" {} variable "databricks_account_password" {} -variable "databricks_account_id" {} +variable "databricks_account_client_id" {} +variable "databricks_account_client_secret" {} variable "tags" { default = {} @@ -42,4 +44,4 @@ variable "db_control_plane" { variable "prefix" { default = "demo" -} \ No newline at end of file +}