Skip to content

Commit

Permalink
Merge pull request #5 from quortex/feature/upgrade-azurerm-to-3x
Browse files Browse the repository at this point in the history
Feature/upgrade azurerm to 3x
  • Loading branch information
yohanhounsounou authored Sep 19, 2023
2 parents ccded31 + 1a04caf commit 3997bc7
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ override.tf.json

# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
# example: *tfplan*

.terraform.lock.hcl
14 changes: 8 additions & 6 deletions storage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@
resource "azurerm_storage_account" "quortex" {
count = length(var.storage_containers) > 0 ? 1 : 0

name = substr(replace(var.storage_account_name, "-", ""), 0, 24)
resource_group_name = var.resource_group_name
location = var.location
account_tier = var.storage_tier
account_replication_type = var.storage_replication_type
account_kind = var.storage_kind
name = substr(replace(var.storage_account_name, "-", ""), 0, 24)
resource_group_name = var.resource_group_name
location = var.location
account_tier = var.storage_tier
account_replication_type = var.storage_replication_type
account_kind = var.storage_kind
allow_nested_items_to_be_public = var.allow_nested_items_to_be_public
min_tls_version = var.min_tls_version
blob_properties {
last_access_time_enabled = var.last_access_time_enabled
}
Expand Down
14 changes: 13 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,16 @@ variable "last_access_time_enabled" {
type = bool
description = "Is the last access time based tracking enabled?"
default = false
}
}

variable "allow_nested_items_to_be_public" {
type = bool
description = "(Optional) Allow or disallow nested items within this Account to opt into being public"
default = true
}

variable "min_tls_version" {
type = string
description = "(Optional) The minimum supported TLS version for the storage account. Possible values are TLS1_0, TLS1_1, and TLS1_2"
default = "TLS1_2"
}
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ terraform {
required_version = ">= 0.12"

required_providers {
azurerm = ">= 2"
azurerm = ">= 3.0.0"
}
}

0 comments on commit 3997bc7

Please sign in to comment.