File tree Expand file tree Collapse file tree 6 files changed +17
-7
lines changed
Expand file tree Collapse file tree 6 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 3030> :point_right : Part 2: Terraform module for [ Databricks Workspace management] ( https://github.com/tomarv2/terraform-databricks-workspace-management )
3131
3232---
33-
3433![ Databricks deployment] ( https://github.com/tomarv2/terraform-databricks-aws-workspace/raw/main/docs/images/databricks_deployment.png )
3534---
3635
Original file line number Diff line number Diff line change 11module "databricks_workspace" {
2- source = " ../../ "
2+ source = " git::git@github.com:tomarv2/terraform-databricks-aws-workspace.git?ref=v0.0.3 "
33
44 profile_for_iam = " iam-admin"
55 aws_region = " us-east-2"
Original file line number Diff line number Diff line change @@ -37,3 +37,15 @@ output "databricks_deployment_name" {
3737 description = " databricks deployment name"
3838 value = module. databricks_workspace . databricks_deployment_name
3939}
40+
41+ /*
42+ output "pat_token" {
43+ description = "databricks pat"
44+ value = module.databricks_workspace.pat_token
45+ }
46+
47+ output "pat_token_duration" {
48+ description = "databricks pat"
49+ value = module.databricks_workspace.pat_token_duration
50+ }
51+ */
Original file line number Diff line number Diff line change @@ -76,11 +76,11 @@ output "workspace_url" {
7676/*
7777output "pat_token" {
7878 description = "databricks pat"
79- value = databricks_token.pat.connection
79+ value = databricks_token.pat.id
8080}
8181
8282output "pat_token_duration" {
8383 description = "databricks pat"
8484 value = databricks_token.pat.lifetime_seconds
8585}
86- */
86+ */
Original file line number Diff line number Diff line change 22 https://registry.terraform.io/providers/databrickslabs/databricks/latest/docs/resources/token
33*/
44resource "databricks_token" "pat" {
5- provider = databricks. created_workspace
6- comment = " Terraform managed: ${ var . teamid } -${ var . prjid } "
5+ provider = databricks. created_workspace
6+ comment = " Terraform managed: ${ var . teamid } -${ var . prjid } "
77 lifetime_seconds = 86400
88}
9-
You can’t perform that action at this time.
0 commit comments