From 735b63de16008fdf174abd73fa64832c9d897f94 Mon Sep 17 00:00:00 2001 From: Bella Luz Quintero Date: Wed, 27 Nov 2024 10:30:09 -0700 Subject: [PATCH 1/3] swap out deprecated values --- operations/template/storage.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/operations/template/storage.tf b/operations/template/storage.tf index b67a2f607..425e4df79 100644 --- a/operations/template/storage.tf +++ b/operations/template/storage.tf @@ -46,12 +46,12 @@ resource "azurerm_storage_account_customer_managed_key" "storage_storage_account resource "azurerm_storage_container" "metadata" { name = "metadata" - storage_account_name = azurerm_storage_account.storage.name + storage_account_id = azurerm_storage_account.storage.id container_access_type = "private" } resource "azurerm_role_assignment" "allow_api_read_write" { - scope = azurerm_storage_container.metadata.resource_manager_id + scope = azurerm_storage_container.metadata.id role_definition_name = "Storage Blob Data Contributor" principal_id = azurerm_linux_web_app.api.identity.0.principal_id } From c8e0ec079383a786b68e7d1d13e08aee56c89001 Mon Sep 17 00:00:00 2001 From: Bella Luz Quintero Date: Wed, 27 Nov 2024 10:45:56 -0700 Subject: [PATCH 2/3] swap out deprecated value --- operations/template/storage.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/operations/template/storage.tf b/operations/template/storage.tf index 425e4df79..66e39b702 100644 --- a/operations/template/storage.tf +++ b/operations/template/storage.tf @@ -110,7 +110,7 @@ resource "azurerm_storage_container" "automated_container" { } resource "azurerm_role_assignment" "allow_automated_test_read_write" { - scope = azurerm_storage_container.automated_container.resource_manager_id + scope = azurerm_storage_container.automated_container.id role_definition_name = "Storage Blob Data Contributor" principal_id = var.deployer_id } From 72490010f03ae6f6dfb4689658eb9805f29e5d27 Mon Sep 17 00:00:00 2001 From: Bella Luz Quintero Date: Wed, 27 Nov 2024 11:17:47 -0700 Subject: [PATCH 3/3] swap out deprecated value --- operations/template/storage.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/operations/template/storage.tf b/operations/template/storage.tf index 66e39b702..bd99c9d42 100644 --- a/operations/template/storage.tf +++ b/operations/template/storage.tf @@ -105,7 +105,7 @@ resource "azurerm_storage_account_customer_managed_key" "automated_storage_stora resource "azurerm_storage_container" "automated_container" { name = "automated" - storage_account_name = azurerm_storage_account.automated_storage.name + storage_account_id = azurerm_storage_account.automated_storage.id container_access_type = "private" }