File tree Expand file tree Collapse file tree 9 files changed +26
-36
lines changed
.external_modules/github.com:tomarv2
terraform-azure-resource-group
terraform-azure-virtual-network
azure_databricks_with_virtual_network Expand file tree Collapse file tree 9 files changed +26
-36
lines changed Original file line number Diff line number Diff line change 1+ Subproject commit 56b022b7b43f70fc2769de0b596c644e016abc16
File renamed without changes.
Original file line number Diff line number Diff line change 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
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
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 :
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
Original file line number Diff line number Diff line change @@ -82,3 +82,4 @@ _testmain.go
8282# ignore test related file(s)
8383** /test **
8484** .
85+ # **/.external_modules
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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'
9293module "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
108104Please 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 )
Original file line number Diff line number Diff line change 11module "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
Original file line number Diff line number Diff line change 11module "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" {
1313module "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 }
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ data "external" "current_user" {
66}
77
88module "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 } "
You can’t perform that action at this time.
0 commit comments