【发布时间】:2021-10-07 23:36:23
【问题描述】:
我正在尝试创建新的 azure 函数应用程序,其中包含 azure 函数(HTTPtrigger)。我可以使用 terraform 创建函数应用程序,但我无法找到一种方法来创建 azure 函数作为其中的一部分。已经检查了Hashicorp azurem docs,但我在那里找不到。
这是我创建 azure 函数应用程序的方式
resource "azurerm_function_app" "example" {
name = "functionapptest"
location = var.location
resource_group_name = var.resource_group_name
app_service_plan_id = var.functionappplan.id
storage_connection_string = azurerm_storage_account.functionapptestsa.primary_blob_connection_string
#storage_account_access_key = ""
app_settings = {
APPINSIGHTS_INSTRUMENTATIONKEY = azurerm_application_insights.app_insight.instrumentation_key
}
有没有办法用 terraform 创建 HTTPtriggers?
【问题讨论】:
标签: azure azure-functions terraform