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

[AVM Module Issue]: private key issue #140

Closed cshea-msft closed 1 month ago

cshea-msft commented 1 month ago

Check for previous/existing GitHub issues

Issue Type?

Bug

(Optional) Module Version

0.2.1

(Optional) Correlation Id

No response

Description

PS C:\Users\chashea\repos\IaC\Terraform\backend> terraform validate
╷ │ Error: Value for unconfigurable attribute │ │ with module.stg.azurerm_role_assignment.private_endpoint, │ on .terraform\modules\stg\main.privateendpoint.tf line 53, in resource "azurerm_role_assignment" "private_endpoint": │ 53: principal_type = each.value.role_assignment.principal_type │ │ Can't configure a value for "principal_type": its value will be decided automatically based on the
│ result of applying this configuration.

module "stg" { source = "Azure/avm-res-storage-storageaccount/azurerm" version = "0.2.1" name = "stgterraformbackend" resource_group_name = azurerm_resource_group.rg.name location = azurerm_resource_group.rg.location account_tier = "Standard" account_replication_type = "LRS" containers = { container1 = { name = "tfstate" container_access_type = "private" } } }

ran terraform validate and got the error. the validation passed when changed version to 0.1.0

lonegunmanb commented 1 month ago

Hi @cshea-msft , could you verify whether your config could generate a valid plan by running terraform plan command?

cshea-msft commented 1 month ago

@lonegunmanb we can close this. error doesnt show up now. not sure what happened. it was the only module i was deploying. Will close.