Skip to content

Commit 9483125

Browse files
authored
Upgrade azurerm provider to v4.x (Storage) (#31)
* [Enhancement] Upgrading AZURERM version to accept >4.40.0 * [Enhancement] Upgrading AZURERM version to accept >4.40.0 * formatting terraform
1 parent 5ef917a commit 9483125

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

main.tf

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ resource "azurerm_storage_account" "storage_account" {
1818
cross_tenant_replication_enabled = local.storage_account[each.key].cross_tenant_replication_enabled
1919
access_tier = local.storage_account[each.key].access_tier
2020
edge_zone = local.storage_account[each.key].edge_zone
21-
enable_https_traffic_only = local.storage_account[each.key].enable_https_traffic_only
21+
https_traffic_only_enabled = local.storage_account[each.key].https_traffic_only_enabled
2222
min_tls_version = local.storage_account[each.key].min_tls_version
2323
allow_nested_items_to_be_public = local.storage_account[each.key].allow_nested_items_to_be_public
2424
shared_access_key_enabled = local.storage_account[each.key].shared_access_key_enabled
@@ -404,8 +404,7 @@ resource "azurerm_storage_share" "storage_share" {
404404
resource "azurerm_storage_share_directory" "storage_share_directory" {
405405
for_each = var.storage_share_directory
406406

407-
name = local.storage_share_directory[each.key].name == "" ? each.key : local.storage_share_directory[each.key].name
408-
share_name = local.storage_share_directory[each.key].share_name
409-
storage_account_name = local.storage_share_directory[each.key].storage_account_name
410-
metadata = local.storage_share_directory[each.key].metadata
407+
name = local.storage_share_directory[each.key].name == "" ? each.key : local.storage_share_directory[each.key].name
408+
storage_share_id = local.storage_share_directory[each.key].storage_share_id
409+
metadata = local.storage_share_directory[each.key].metadata
411410
}

variables.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ locals {
3535
cross_tenant_replication_enabled = false
3636
access_tier = null
3737
edge_zone = null
38-
enable_https_traffic_only = null
38+
https_traffic_only_enabled = null
3939
min_tls_version = null
4040
allow_nested_items_to_be_public = false // defined default
4141
shared_access_key_enabled = null
@@ -198,6 +198,7 @@ locals {
198198
}
199199
storage_share_directory = {
200200
name = ""
201+
id = null
201202
metadata = null
202203
}
203204
}

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
azurerm = {
44
source = "registry.terraform.io/hashicorp/azurerm"
5-
version = ">=3.103.0, <4.0"
5+
version = ">=4.40.0, <5.0"
66
}
77
}
88
required_version = ">=1.5"

0 commit comments

Comments
 (0)