Skip to content

Commit f760e4c

Browse files
authored
Merge pull request #1 from tomarv2/develop
Develop
2 parents 4f5c39d + 09a50f7 commit f760e4c

File tree

9 files changed

+26
-36
lines changed

9 files changed

+26
-36
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 56b022b7b43f70fc2769de0b596c644e016abc16
File renamed without changes.

.github/workflows/pre-commit.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818

1919
- name: Install Python
2020
uses: actions/setup-python@v2
21+
with:
22+
python-version: '3.8'
23+
architecture: 'x64'
2124

2225
- name: Build matrix
2326
id: matrix
@@ -40,6 +43,9 @@ jobs:
4043

4144
- name: Install Python
4245
uses: actions/setup-python@v2
46+
with:
47+
python-version: '3.8'
48+
architecture: 'x64'
4349

4450
- name: Terraform min/max versions
4551
id: minMax
@@ -55,18 +61,6 @@ jobs:
5561
- name: Install pre-commit dependencies
5662
run: pip install pre-commit
5763

58-
# - name: Execute pre-commit
59-
# # Run only validate pre-commit check on min version supported
60-
# if: ${{ matrix.directory != '.' }}
61-
# run:
62-
# pre-commit run terraform_validate --color=always --show-diff-on-failure --files ${{ matrix.directory }}/*
63-
#
64-
# - name: Execute pre-commit
65-
# # Run only validate pre-commit check on min version supported
66-
# if: ${{ matrix.directory == '.' }}
67-
# run:
68-
# pre-commit run terraform_validate --color=always --show-diff-on-failure --files $(ls *.tf)
69-
7064

7165
# Max Terraform version
7266
getBaseVersion:
@@ -98,6 +92,9 @@ jobs:
9892

9993
- name: Install Python
10094
uses: actions/setup-python@v2
95+
with:
96+
python-version: '3.8'
97+
architecture: 'x64'
10198

10299
- name: Install Terraform v${{ matrix.version }}
103100
uses: hashicorp/setup-terraform@v1
@@ -108,7 +105,7 @@ jobs:
108105
run: |
109106
pip install pre-commit
110107
pip install checkov
111-
curl -L "$(curl -s https://api.github.com/repos/terraform-docs/terraform-docs/releases/latest | grep -o -E "https://.+?-v0.12.1-linux-amd64" | head -n1)" > terraform-docs && chmod +x terraform-docs && sudo mv terraform-docs /usr/bin/
108+
curl -L "$(curl -s https://api.github.com/repos/terraform-docs/terraform-docs/releases/latest | grep -o -E "https://.+?-v1.0.1-linux-amd64" | head -n1)" > terraform-docs && chmod +x terraform-docs && sudo mv terraform-docs /usr/bin/
112109
curl -L "$(curl -s https://api.github.com/repos/terraform-linters/tflint/releases/latest | grep -o -E "https://.+?_linux_amd64.zip")" > tflint.zip && unzip tflint.zip && rm tflint.zip && sudo mv tflint /usr/bin/
113110
114111
- name: Execute pre-commit

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,4 @@ _testmain.go
8282
# ignore test related file(s)
8383
**/test**
8484
**.
85+
#**/.external_modules

.pre-commit-config.yaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,15 @@ repos:
1717
- '--args=--only=terraform_workspace_remote'
1818

1919
- repo: https://github.com/pre-commit/pre-commit-hooks
20-
rev: v3.2.0
20+
rev: v3.4.0
2121
hooks:
2222
- id: trailing-whitespace
2323
- id: check-merge-conflict
2424
- id: end-of-file-fixer
2525
- id: check-yaml
2626

27-
# - repo: https://github.com/bridgecrewio/checkov.git
28-
# rev: '2.0.769'
29-
# hooks:
30-
# - id: checkov
31-
# verbose: true
32-
# args:
33-
# - -d . --framework terraform -o output_format json --download-external-modules True
34-
3527
- repo: https://github.com/bridgecrewio/checkov.git
36-
rev: '2.0.769'
28+
rev: '2.0.531'
3729
hooks:
3830
- id: checkov
3931
verbose: true

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
</p>
1717

1818
## Terraform module for [Databricks Azure Workspace (Part 1)](https://registry.terraform.io/providers/databrickslabs/databricks/latest/docs/guides/azure-workspace)
19-
---
2019

21-
## Terraform module for [Databricks AWS Workspace](https://github.com/tomarv2/terraform-databricks-aws-workspace)
20+
> :arrow_right:**Part 2:** Terraform module for [Databricks Workspace management](https://github.com/tomarv2/terraform-databricks-workspace-management)
21+
22+
---
2223

2324
![Databricks deployment](https://github.com/tomarv2/terraform-databricks-azure-workspace/raw/main/docs/images/databricks_deployment.png)
2425
---
@@ -92,11 +93,6 @@ tf -c=azure destroy -var='teamid=foo' -var='prjid=bar'
9293
module "databricks_workspace" {
9394
source = "git::[email protected]:tomarv2/terraform-databricks-azure-workspace.git"
9495
95-
client_id = var.client_id
96-
client_secret = var.client_secret
97-
subscription_id = var.subscription_id
98-
tenant_id = var.tenant_id
99-
10096
resource_group_name = "demo-rg"
10197
# ---------------------------------------------
10298
# Note: Do not change teamid and prjid once set.
@@ -106,3 +102,8 @@ module "databricks_workspace" {
106102
```
107103

108104
Please refer to examples directory [link](examples) for references.
105+
106+
107+
#### References
108+
109+
##### - Terraform module for [Databricks AWS Workspace](https://github.com/tomarv2/terraform-databricks-aws-workspace)

examples/azure_databricks/main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
module "azure_databricks" {
22
source = "../../"
33

4-
deploy_resource_group = false
5-
resource_group_name = "demo-resource_group"
4+
resource_group_name = "demo-resource_group"
65
# ---------------------------------------------
76
# Note: Do not change teamid and prjid once set.
87
teamid = var.teamid

examples/azure_databricks_with_virtual_network/main.tf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module "vnet" {
2-
source = "[email protected]:tomarv2/terraform-azure-virtual-network.git?ref=v0.0.2"
2+
source = "git::git@github.com:tomarv2/terraform-azure-virtual-network.git?ref=v0.0.2"
33

44
resource_group_name = "demo-resource_group"
55
location = "westus2"
@@ -13,8 +13,7 @@ module "vnet" {
1313
module "azure_databricks" {
1414
source = "../../"
1515

16-
deploy_resource_group = false
17-
resource_group_name = "demo-resource_group"
16+
resource_group_name = "demo-resource_group"
1817
custom_parameters = {
1918
virtual_network_id = module.vnet.virtual_network_id
2019
}

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ data "external" "current_user" {
66
}
77

88
module "resource_group" {
9-
source = "[email protected]:tomarv2/terraform-azure-resource-group.git?ref=v0.0.3"
9+
source = "git::git@github.com:tomarv2/terraform-azure-resource-group.git?ref=v0.0.3"
1010

1111
deploy_resource_group = var.deploy_resource_group != false ? true : false
1212
resource_group_name = var.resource_group_name != null ? var.resource_group_name : "${var.teamid}-${var.prjid}"

0 commit comments

Comments
 (0)