Skip to content

Commit 8a2b007

Browse files
authored
Merge pull request #10 from tomarv2/updates
Updates
2 parents d1ac73a + bd3e60e commit 8a2b007

File tree

6 files changed

+17
-7
lines changed

6 files changed

+17
-7
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
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

2.31 KB
Loading

examples/sample/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module "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"

examples/sample/outputs.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
*/

outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ output "workspace_url" {
7676
/*
7777
output "pat_token" {
7878
description = "databricks pat"
79-
value = databricks_token.pat.connection
79+
value = databricks_token.pat.id
8080
}
8181
8282
output "pat_token_duration" {
8383
description = "databricks pat"
8484
value = databricks_token.pat.lifetime_seconds
8585
}
86-
*/
86+
*/

pat_token.tf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
https://registry.terraform.io/providers/databrickslabs/databricks/latest/docs/resources/token
33
*/
44
resource "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-

0 commit comments

Comments
 (0)