From f505e5f087360b70e761d25b13383d009bc7df47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Schn=C3=A9ider?= Date: Mon, 20 Feb 2023 21:12:41 +0000 Subject: [PATCH] refactor: Best practices for Azure Co-authored-by: Moderne --- .../terraform/storage.tf | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/terraform-spring-boot-samples/terraform/storage.tf b/terraform-spring-boot-samples/terraform/storage.tf index 05ba3b7..7cc976e 100644 --- a/terraform-spring-boot-samples/terraform/storage.tf +++ b/terraform-spring-boot-samples/terraform/storage.tf @@ -4,9 +4,15 @@ resource "azurerm_resource_group" "rg" { } resource "azurerm_storage_account" "testsa" { - name = "tfclienttestsa" - resource_group_name = "${azurerm_resource_group.rg.name}" - location = "${azurerm_resource_group.rg.location}" - account_tier = "Standard" - account_replication_type = "GRS" + name = "tfclienttestsa" + resource_group_name = "${azurerm_resource_group.rg.name}" + location = "${azurerm_resource_group.rg.location}" + account_tier = "Standard" + account_replication_type = "GRS" + enable_https_traffic_only = true + network_rules { + default_action = "Deny" + } + bypass = ["AzureServices"] + min_tls_version = "TLS1_2" }