Azure / terraform-azurerm-avm-res-storage-storageaccount

This Terraform module is designed to create Azure Storage Accounts and its related resources, including blob containers, queues, tables, and file shares. It also supports the creation of a storage account private endpoint which provides secure and direct connectivity to Azure Storage over a private network.
https://registry.terraform.io/modules/Azure/avm-res-storage-storageaccount
MIT License
19 stars 27 forks source link

`access_tier` reports error #95

Closed stredovek closed 3 months ago

stredovek commented 3 months ago

Is there an existing issue for this?

Greenfield/Brownfield provisioning

greenfield

Terraform Version

v1.7.0

Module Version

0.1.0

AzureRM Provider Version

v3.100.0

Affected Resource(s)/Data Source(s)

azurerm_storage_account

Terraform Configuration Files

terraform

resource "azurerm_resource_group" "my_rg" {
  location = "westus3"
  name     = "my-rg-233"

}

locals {
  storage_account={
 funcc = {
      account_replication_type        = "ZRS"
      account_tier                    = "Premium"
      account_kind                    = "BlockBlobStorage"
      min_tls_version                 = "TLS1_2"
      shared_access_key_enabled       = true
      public_network_access_enabled   = false
      default_to_oauth_authentication = true
    }
  }
} 

module "storage_account" {
  source  = "Azure/avm-res-storage-storageaccount/azurerm"
  version = "~> 0.1.0"
  name                            = "abracadabra256"
  resource_group_name             = azurerm_resource_group.my_rg.name
  location                        = azurerm_resource_group.my_rg.location
  account_replication_type        = local.storage_account.funcc.account_replication_type
  account_tier                    = local.storage_account.funcc.account_tier
  account_kind                    = local.storage_account.funcc.account_kind
  min_tls_version                 = "TLS1_2"
  shared_access_key_enabled       = local.storage_account.funcc.shared_access_key_enabled
  public_network_access_enabled   = local.storage_account.funcc.public_network_access_enabled
  allow_nested_items_to_be_public = false
  default_to_oauth_authentication = local.storage_account.funcc.default_to_oauth_authentication
  enable_telemetry = false
  depends_on = [ azurerm_resource_group.my_rg ]
}

### tfvars variables values

```hcl
n/a

Debug Output/Panic Output

Error: 1 error occurred:
│       * `access_tier` is only available for accounts of kind: [BlobStorage StorageV2 FileStorage]

Expected Behaviour

No response

Actual Behaviour

No response

Steps to Reproduce

No response

Important Factoids

No response

References

No response

microsoft-github-policy-service[bot] commented 3 months ago

[!IMPORTANT] The "Needs: Triage :mag:" label must be removed once the triage process is complete!

[!NOTE] This label was added as per ITA06.

chinthakaru commented 3 months ago

@stredovek This module has been affected by the recent AzARM change. I have updated it with the necessary modifications. Please test it.

chinthakaru commented 3 months ago

Module has been updated and tested with PR #97 .