使用terraform

时间:2018-04-15 13:31:06

标签: azure azure-functions terraform terraform-provider-azure

我有一个例子,说明如何使用terraform部署azure函数。但是,不幸的是,它只部署了zip包。还有其他办法吗?如何将多个软件包部署到一个函数中?如何使用terraform配置代理?

resource "azurerm_function_app" "azure_function_scenario1_hop2" {
      name                      = "scenario1-hop2-azure-function"
      location                  = "${var.location}"
      resource_group_name       = "${var.resource_group_name}"
      app_service_plan_id       = "${var.app_service_plan_id}"
      storage_connection_string = "${var.storage_connection_string}"

      app_settings {
        APPINSIGHTS_INSTRUMENTATIONKEY = "${var.instrumentation_key}"
        HASH                           = "${base64sha256(file("./../bin/scenario1_hop2_node.zip"))}"
        WEBSITE_USE_ZIP                = "https://github.com/lmolotii/azure-functions-playgroud/raw/master/scenario1_hop2_node.zip"
      }
    }

0 个答案:

没有答案