generated from equinor/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
883ccb5
commit fa19192
Showing
13 changed files
with
1,062 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# Basic example | ||
|
||
Terraform configuration which creates an Azure Foobar resource with the following features: | ||
Terraform configuration which creates an Azure Databricks workspace with the following features: | ||
|
||
- Feature 1 | ||
- Feature 2 | ||
- Standard SKU |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Complete example | ||
|
||
Terraform configuration which creates an Azure Databricks workspace with the following features: | ||
|
||
- Premium SKU | ||
- Custom managed resource group name | ||
- Export diagnostic logs to log analytics workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
provider "azurerm" { | ||
features {} | ||
} | ||
|
||
locals { | ||
tags = { | ||
Environment = "Test" | ||
} | ||
} | ||
|
||
resource "random_id" "this" { | ||
byte_length = 8 | ||
} | ||
|
||
resource "azurerm_resource_group" "this" { | ||
name = "rg-${random_id.this.hex}" | ||
location = var.location | ||
|
||
tags = local.tags | ||
} | ||
|
||
module "log_analytics" { | ||
source = "github.com/equinor/terraform-azurerm-log-analytics?ref=v1.1.0" | ||
|
||
workspace_name = "log-${random_id.this.hex}" | ||
resource_group_name = azurerm_resource_group.this.name | ||
location = azurerm_resource_group.this.location | ||
|
||
tags = local.tags | ||
} | ||
|
||
module "databricks" { | ||
# source = "github.com/equinor/terraform-azurerm-databricks" | ||
source = "../.." | ||
|
||
workspace_name = "dbw-${random_id.this.hex}" | ||
resource_group_name = azurerm_resource_group.this.name | ||
location = azurerm_resource_group.this.location | ||
sku = "premium" | ||
managed_resource_group_name = "rg-dbw-${random_id.this.hex}" | ||
log_analytics_workspace_id = module.log_analytics.workspace_id | ||
|
||
tags = local.tags | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
variable "location" { | ||
description = "The location to create the resources in." | ||
type = string | ||
default = "northeurope" | ||
} |
Oops, something went wrong.