We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Update CKV_AZURE_43 `each.`
**Describe the issue**
CKV_AZURE_43 StorageAccountName.py VARIABLE_REFS list does not include the `each.` used with for_each meta argument to return UNKNOWN and currently returns FAILED check which is incorrect.

**Examples**

```
module "bootstrap" {
  source = "../../modules/bootstrap"

  for_each = var.bootstrap_storage

  create_storage_account = try(each.value.create_storage, true)
  name                   = each.value.name
  resource_group_name    = try(each.value.resource_group_name, local.resource_group.name)
  location               = var.location
  storage_acl            = try(each.value.storage_acl, false)

  tags = var.tags
}
```

Within the bootstrap module - we use the `azurerm_storage_account` :

```
resource "azurerm_storage_account" "this" {
  count = var.create_storage_account ? 1 : 0

  name                     = var.name
  location                 = var.location
  resource_group_name      = var.resource_group_name
  min_tls_version          = var.min_tls_version
  account_replication_type = "LRS"
  account_tier             = "Standard"
  tags                     = var.tags
  queue_properties {
    logging {
      delete                = true
      read                  = true
      write                 = true
      version               = "1.0"
      retention_policy_days = var.retention_policy_days
    }
  }
  network_rules {
    default_action             = var.storage_acl == true ? "Deny" : "Allow"
    ip_rules                   = var.storage_acl == true ? var.storage_allow_inbound_public_ips : null
    virtual_network_subnet_ids = var.storage_acl == true ? var.storage_allow_vnet_subnets : null
  }
}
```

And Checkov returns this :

```
Check: CKV_AZURE_43: "Ensure Storage Accounts adhere to the naming rules"
        FAILED for resource: module.bootstrap.azurerm_storage_account.this
        File: /modules/bootstrap/main.tf:1-25
        Calling File: /examples/standalone_vm/main.tf:192-204
        Guide: https://docs.bridgecrew.io/docs/ensure-storage-accounts-adhere-to-the-naming-rules
```

**Version (please complete the following information):**
 - Checkov Version 2.2.125

**Additional context**


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `checkov/terraform/checks/resource/azure/StorageAccountName.py`
Content:
```
1 import re
2 from typing import List, Dict, Any
3 
4 from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck
5 from checkov.common.models.enums import CheckResult, CheckCategories
6 
7 STO_NAME_REGEX = re.compile(r"^[a-z0-9]{3,24}$")
8 VARIABLE_REFS = ("local.", "module.", "var.", "random_string.", "random_id.", "random_integer.", "random_pet.",
9                  "azurecaf_name")
10 
11 
12 class StorageAccountName(BaseResourceCheck):
13     def __init__(self) -> None:
14         name = "Ensure Storage Accounts adhere to the naming rules"
15         id = "CKV_AZURE_43"
16         supported_resources = ["azurerm_storage_account"]
17         categories = [CheckCategories.CONVENTION]
18         super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)
19 
20     def scan_resource_conf(self, conf: Dict[str, Any]) -> CheckResult:
21         """
22             The Storage Account naming reference:
23             https://docs.microsoft.com/en-us/azure/storage/common/storage-account-overview#naming-storage-accounts
24         :param conf: azurerm_storage_account configuration
25         :return: <CheckResult>
26         """
27         name = conf.get("name")
28         if name:
29             name = str(name[0])
30             if any(x in name for x in VARIABLE_REFS):
31                 # in the case we couldn't evaluate the name, just ignore
32                 return CheckResult.UNKNOWN
33             if re.findall(STO_NAME_REGEX, str(conf["name"][0])):
34                 return CheckResult.PASSED
35 
36         return CheckResult.FAILED
37 
38     def get_evaluated_keys(self) -> List[str]:
39         return ["name"]
40 
41 
42 check = StorageAccountName()
43
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/checkov/terraform/checks/resource/azure/StorageAccountName.py b/checkov/terraform/checks/resource/azure/StorageAccountName.py
--- a/checkov/terraform/checks/resource/azure/StorageAccountName.py
+++ b/checkov/terraform/checks/resource/azure/StorageAccountName.py
@@ -6,7 +6,7 @@
 
 STO_NAME_REGEX = re.compile(r"^[a-z0-9]{3,24}$")
 VARIABLE_REFS = ("local.", "module.", "var.", "random_string.", "random_id.", "random_integer.", "random_pet.",
-                 "azurecaf_name")
+                 "azurecaf_name", "each.")
 
 
 class StorageAccountName(BaseResourceCheck):

{"golden_diff": "diff --git a/checkov/terraform/checks/resource/azure/StorageAccountName.py b/checkov/terraform/checks/resource/azure/StorageAccountName.py\n--- a/checkov/terraform/checks/resource/azure/StorageAccountName.py\n+++ b/checkov/terraform/checks/resource/azure/StorageAccountName.py\n@@ -6,7 +6,7 @@\n \n STO_NAME_REGEX = re.compile(r\"^[a-z0-9]{3,24}$\")\n VARIABLE_REFS = (\"local.\", \"module.\", \"var.\", \"random_string.\", \"random_id.\", \"random_integer.\", \"random_pet.\",\n-                 \"azurecaf_name\")\n+                 \"azurecaf_name\", \"each.\")\n \n \n class StorageAccountName(BaseResourceCheck):\n", "issue": "Update CKV_AZURE_43 `each.`\n**Describe the issue**\r\nCKV_AZURE_43 StorageAccountName.py VARIABLE_REFS list does not include the `each.` used with for_each meta argument to return UNKNOWN and currently returns FAILED check which is incorrect.\r\n\r\n**Examples**\r\n\r\n```\r\nmodule \"bootstrap\" {\r\n  source = \"../../modules/bootstrap\"\r\n\r\n  for_each = var.bootstrap_storage\r\n\r\n  create_storage_account = try(each.value.create_storage, true)\r\n  name                   = each.value.name\r\n  resource_group_name    = try(each.value.resource_group_name, local.resource_group.name)\r\n  location               = var.location\r\n  storage_acl            = try(each.value.storage_acl, false)\r\n\r\n  tags = var.tags\r\n}\r\n```\r\n\r\nWithin the bootstrap module - we use the `azurerm_storage_account` :\r\n\r\n```\r\nresource \"azurerm_storage_account\" \"this\" {\r\n  count = var.create_storage_account ? 1 : 0\r\n\r\n  name                     = var.name\r\n  location                 = var.location\r\n  resource_group_name      = var.resource_group_name\r\n  min_tls_version          = var.min_tls_version\r\n  account_replication_type = \"LRS\"\r\n  account_tier             = \"Standard\"\r\n  tags                     = var.tags\r\n  queue_properties {\r\n    logging {\r\n      delete                = true\r\n      read                  = true\r\n      write                 = true\r\n      version               = \"1.0\"\r\n      retention_policy_days = var.retention_policy_days\r\n    }\r\n  }\r\n  network_rules {\r\n    default_action             = var.storage_acl == true ? \"Deny\" : \"Allow\"\r\n    ip_rules                   = var.storage_acl == true ? var.storage_allow_inbound_public_ips : null\r\n    virtual_network_subnet_ids = var.storage_acl == true ? var.storage_allow_vnet_subnets : null\r\n  }\r\n}\r\n```\r\n\r\nAnd Checkov returns this :\r\n\r\n```\r\nCheck: CKV_AZURE_43: \"Ensure Storage Accounts adhere to the naming rules\"\r\n        FAILED for resource: module.bootstrap.azurerm_storage_account.this\r\n        File: /modules/bootstrap/main.tf:1-25\r\n        Calling File: /examples/standalone_vm/main.tf:192-204\r\n        Guide: https://docs.bridgecrew.io/docs/ensure-storage-accounts-adhere-to-the-naming-rules\r\n```\r\n\r\n**Version (please complete the following information):**\r\n - Checkov Version 2.2.125\r\n\r\n**Additional context**\r\n\n", "before_files": [{"content": "import re\nfrom typing import List, Dict, Any\n\nfrom checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck\nfrom checkov.common.models.enums import CheckResult, CheckCategories\n\nSTO_NAME_REGEX = re.compile(r\"^[a-z0-9]{3,24}$\")\nVARIABLE_REFS = (\"local.\", \"module.\", \"var.\", \"random_string.\", \"random_id.\", \"random_integer.\", \"random_pet.\",\n                 \"azurecaf_name\")\n\n\nclass StorageAccountName(BaseResourceCheck):\n    def __init__(self) -> None:\n        name = \"Ensure Storage Accounts adhere to the naming rules\"\n        id = \"CKV_AZURE_43\"\n        supported_resources = [\"azurerm_storage_account\"]\n        categories = [CheckCategories.CONVENTION]\n        super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)\n\n    def scan_resource_conf(self, conf: Dict[str, Any]) -> CheckResult:\n        \"\"\"\n            The Storage Account naming reference:\n            https://docs.microsoft.com/en-us/azure/storage/common/storage-account-overview#naming-storage-accounts\n        :param conf: azurerm_storage_account configuration\n        :return: <CheckResult>\n        \"\"\"\n        name = conf.get(\"name\")\n        if name:\n            name = str(name[0])\n            if any(x in name for x in VARIABLE_REFS):\n                # in the case we couldn't evaluate the name, just ignore\n                return CheckResult.UNKNOWN\n            if re.findall(STO_NAME_REGEX, str(conf[\"name\"][0])):\n                return CheckResult.PASSED\n\n        return CheckResult.FAILED\n\n    def get_evaluated_keys(self) -> List[str]:\n        return [\"name\"]\n\n\ncheck = StorageAccountName()\n", "path": "checkov/terraform/checks/resource/azure/StorageAccountName.py"}], "after_files": [{"content": "import re\nfrom typing import List, Dict, Any\n\nfrom checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck\nfrom checkov.common.models.enums import CheckResult, CheckCategories\n\nSTO_NAME_REGEX = re.compile(r\"^[a-z0-9]{3,24}$\")\nVARIABLE_REFS = (\"local.\", \"module.\", \"var.\", \"random_string.\", \"random_id.\", \"random_integer.\", \"random_pet.\",\n                 \"azurecaf_name\", \"each.\")\n\n\nclass StorageAccountName(BaseResourceCheck):\n    def __init__(self) -> None:\n        name = \"Ensure Storage Accounts adhere to the naming rules\"\n        id = \"CKV_AZURE_43\"\n        supported_resources = [\"azurerm_storage_account\"]\n        categories = [CheckCategories.CONVENTION]\n        super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)\n\n    def scan_resource_conf(self, conf: Dict[str, Any]) -> CheckResult:\n        \"\"\"\n            The Storage Account naming reference:\n            https://docs.microsoft.com/en-us/azure/storage/common/storage-account-overview#naming-storage-accounts\n        :param conf: azurerm_storage_account configuration\n        :return: <CheckResult>\n        \"\"\"\n        name = conf.get(\"name\")\n        if name:\n            name = str(name[0])\n            if any(x in name for x in VARIABLE_REFS):\n                # in the case we couldn't evaluate the name, just ignore\n                return CheckResult.UNKNOWN\n            if re.findall(STO_NAME_REGEX, str(conf[\"name\"][0])):\n                return CheckResult.PASSED\n\n        return CheckResult.FAILED\n\n    def get_evaluated_keys(self) -> List[str]:\n        return [\"name\"]\n\n\ncheck = StorageAccountName()\n", "path": "checkov/terraform/checks/resource/azure/StorageAccountName.py"}]}