Deploy azure function using terraform

荒凉一梦 提交于 2019-12-11 17:22:47

问题


I have an example how to deploy azure function using terraform. But, unfortunately, it deploys only zip package. Is there are any other way to do it? How can I deploy multiple packages into one function? How can I configure proxy using 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"
      }
    }

来源:https://stackoverflow.com/questions/49842499/deploy-azure-function-using-terraform

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!