Skip to content

Commit

Permalink
chore(Terraform): manage storage account binding in Terraform
Browse files Browse the repository at this point in the history
It was happening on dev and test before; this adds it to production.
  • Loading branch information
afeld committed Oct 26, 2022
1 parent 0be2260 commit 8a2f169
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion terraform/app_service.tf
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,19 @@ resource "azurerm_linux_web_app" "main" {
]
}

storage_account {
access_key = azurerm_storage_account.main.primary_access_key
account_name = azurerm_storage_account.main.name
# use the same name
name = azurerm_storage_container.config.name
type = "AzureBlob"
share_name = azurerm_storage_container.config.name
mount_path = "/home/calitp/app/config"
}

lifecycle {
prevent_destroy = true
ignore_changes = [app_settings, storage_account, tags]
ignore_changes = [app_settings, tags]
}
}

Expand Down

0 comments on commit 8a2f169

Please sign in to comment.