labd / terraform-azure-mach-shared

Module to provision a 'shared' resource group in Azure to use in a MACH stack
MIT License
0 stars 1 forks source link

Usage of allow_blob_public_access no longer supported #2

Open Payet opened 2 years ago

Payet commented 2 years ago

Summary

When running "terraform apply", the following error occurs:

Error: Unsupported argument on .terraform/modules/shared_infra/storage.tf line 21, in resource "azurerm_storage_account" "components": 21: allow_blob_public_access = true An argument named "allow_blob_public_access" is not expected here.

Details

From azurerm 3.0 and above, allow_blob_public_access is no longer supported https://github.com/hashicorp/terraform-provider-azurerm/issues/16128 The fix should simply be to rename it to "allow_nested_items_to_be_public"

Payet commented 2 years ago

Here is also a patch 0002-Rename-allow_blob_public_access-to-allow_nested_item.patch.zip :