Skip to content

Commit 371764b

Browse files
committed
cleanup
1 parent 70da157 commit 371764b

File tree

6 files changed

+12
-60
lines changed

6 files changed

+12
-60
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<a href="https://github.com/tomarv2/terraform-databricks-aws-workspace/actions/workflows/pre-commit.yml" alt="Precommit">
2+
<a href="https://github.com/tomarv2/terraform-databricks-aws-workspace/actions/workflows/pre-commit.yml" alt="Pre Commit">
33
<img src="https://github.com/tomarv2/terraform-databricks-aws-workspace/actions/workflows/pre-commit.yml/badge.svg?branch=main" /></a>
44
<a href="https://www.apache.org/licenses/LICENSE-2.0" alt="license">
55
<img src="https://img.shields.io/github/license/tomarv2/terraform-databricks-aws-workspace" /></a>
@@ -15,7 +15,7 @@
1515
<img src="https://img.shields.io/twitter/follow/varuntomar2019?style=social&logo=twitter"></a>
1616
</p>
1717

18-
# Terraform module for [Databricks AWS Workspace E2 (Part 1)](https://registry.terraform.io/providers/databrickslabs/databricks/latest/docs/guides/aws-workspace)
18+
## Terraform module for [Databricks AWS Workspace E2 (Part 1)](https://registry.terraform.io/providers/databrickslabs/databricks/latest/docs/guides/aws-workspace)
1919

2020
> ❗️ **Important**
2121
>
@@ -29,6 +29,11 @@
2929
>
3030
> :point_right: Part 2: Terraform module for [Databricks Workspace management](https://github.com/tomarv2/terraform-databricks-workspace-management)
3131
32+
---
33+
34+
![Databricks deployment](https://github.com/tomarv2/terraform-databricks-aws-workspace/raw/main/docs/images/databricks_deployment.png)
35+
---
36+
3237
## Versions
3338

3439
- Module tested for Terraform 0.14.
@@ -95,7 +100,7 @@ tf -cloud aws destroy -var='teamid=foo' -var='prjid=bar'
95100
96101
```
97102
module "databricks_workspace" {
98-
source = "git::git@github.com:tomarv2/terraform-databricks-aws-workspace.git?ref=v0.0.1"
103+
source = "git::git@github.com:tomarv2/terraform-databricks-aws-workspace.git"
99104
100105
profile_for_iam = "iam-admin"
101106
databricks_account_username = "example@example.com"
234 KB
Loading

locals.tf

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
11
locals {
2-
/*
3-
shared_tags = map(
4-
"Name", "${var.teamid}-${var.prjid}",
5-
"team", var.teamid,
6-
"project", var.prjid
7-
)
8-
*/
92
profile_to_use = var.profile_for_iam != null ? var.profile_for_iam : var.profile_to_use
103
}

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module "vpc" {
88
}
99

1010
module "iam_role" {
11-
source = "git::git@github.com:tomarv2/terraform-aws-iam-role.git//modules/iam_role_external?ref=v0.0.2"
11+
source = "git::git@github.com:tomarv2/terraform-aws-iam-role.git//modules/iam_role_external?ref=v0.0.3"
1212

1313
profile_to_use = local.profile_to_use
1414
assume_role_policy = data.databricks_aws_assume_role_policy.this.json
@@ -20,7 +20,7 @@ module "iam_role" {
2020
}
2121

2222
module "iam_policies" {
23-
source = "git::git@github.com:tomarv2/terraform-aws-iam-policies.git?ref=v0.0.1"
23+
source = "git::git@github.com:tomarv2/terraform-aws-iam-policies.git?ref=v0.0.2"
2424

2525
profile_to_use = local.profile_to_use
2626
role_name = module.iam_role.iam_role_name

variables.tf

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,11 @@ variable "databricks_account_password" {
2929
type = string
3030
}
3131

32-
#variable "databricks_account_id" {}
33-
3432
variable "databricks_account_id" {
3533
description = "External ID provided by third party."
3634
type = string
3735
}
3836

39-
/*
40-
variable "cidr_block" {
41-
description = "VPC CIDR block"
42-
default = "10.4.0.0/16"
43-
type = string
44-
}
45-
*/
46-
4737
resource "random_string" "naming" {
4838
special = false
4939
upper = false
@@ -53,43 +43,7 @@ resource "random_string" "naming" {
5343
locals {
5444
suffix = random_string.naming.result
5545
}
56-
/*
57-
variable "path" {
58-
description = "The path to the IAM Role."
59-
type = string
60-
default = "/"
61-
}
62-
63-
variable "force_detach_policies" {
64-
description = "Forcibly detach the policy of the role."
65-
type = bool
66-
default = false
67-
}
68-
69-
variable "policy_arn" {
70-
description = "Attaches the policies to the IAM Role."
71-
type = list(any)
72-
default = null
73-
}
7446

75-
variable "policy_identifier" {
76-
description = "Policy Indentifier"
77-
default = ["ec2.amazonaws.com"]
78-
type = list(string)
79-
}
80-
81-
variable "role_name" {
82-
description = "IAM role"
83-
default = ""
84-
type = string
85-
}
86-
87-
variable "assume_role_policy" {
88-
description = "IAM assume role policy"
89-
default = ""
90-
type = string
91-
}
92-
*/
9347
variable "profile_for_iam" {
9448
description = "profile to use for IAM"
9549
default = null

workspaces.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ resource "databricks_mws_workspaces" "this" {
22
provider = databricks.mws
33
account_id = var.databricks_account_id
44
aws_region = var.aws_region
5-
workspace_name = "${var.teamid}-${var.prjid}-${local.suffix}" #local.prefix
6-
deployment_name = "${var.teamid}-${var.prjid}-${local.suffix}" #local.prefix
5+
workspace_name = "${var.teamid}-${var.prjid}-${local.suffix}"
6+
deployment_name = "${var.teamid}-${var.prjid}-${local.suffix}"
77

88
credentials_id = databricks_mws_credentials.this.credentials_id
99
storage_configuration_id = databricks_mws_storage_configurations.this.storage_configuration_id

0 commit comments

Comments
 (0)