Skip to content

Commit

Permalink
Fix few bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinbuss committed Apr 23, 2024
1 parent 79cd8b2 commit df68f2c
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/_terraformEnvironmentTemplate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
plan:
name: Terraform Plan
runs-on: [self-hosted]
runs-on: [ubuntu-latest]
continue-on-error: false
environment: ${{ inputs.environment }}
needs: [lint]
Expand Down Expand Up @@ -189,7 +189,7 @@ jobs:
apply:
name: Terraform Apply
runs-on: [self-hosted]
runs-on: [ubuntu-latest]
continue-on-error: false
environment: ${{ inputs.environment }}
if: github.event_name == 'push' || github.event_name == 'release'
Expand Down
File renamed without changes.
Empty file.
11 changes: 11 additions & 0 deletions code/infra/datalake.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ resource "azurerm_storage_account" "storage" {
shared_access_key_enabled = false
}

resource "azurerm_storage_container" "storage_container" {
for_each = var.storage_container_names

name = each.key
storage_account_name = azurerm_storage_account.storage.name

container_access_type = "private"
encryption_scope_override_enabled = true
metadata = {}
}

data "azurerm_monitor_diagnostic_categories" "diagnostic_categories_storage" {
resource_id = azurerm_storage_account.storage.id
}
Expand Down
16 changes: 8 additions & 8 deletions code/infra/terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ terraform {
}
}

# backend "azurerm" {
# environment = "public"
# resource_group_name = "<provided-via-config>"
# storage_account_name = "<provided-via-config>"
# container_name = "<provided-via-config>"
# key = "<provided-via-config>"
# use_azuread_auth = true
# }
backend "azurerm" {
environment = "public"
resource_group_name = "<provided-via-config>"
storage_account_name = "<provided-via-config>"
container_name = "<provided-via-config>"
key = "<provided-via-config>"
use_azuread_auth = true
}
}
7 changes: 7 additions & 0 deletions code/infra/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@ variable "kusto_cluster_databases" {
default = {}
}

variable "storage_container_names" {
description = "Specifies the names of the storage account containers."
type = list(string)
sensitive = false
default = []
}

# Monitoring variables
variable "diagnostics_configurations" {
description = "Specifies the diagnostic configuration for the service."
Expand Down

0 comments on commit df68f2c

Please sign in to comment.