Created
November 30, 2019 16:45
-
-
Save xximjasonxx/6db5033dc6dff5e0293becfe975c1ca1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_function_app" "funcApp" { | |
name = "userapi-${var.app_name}fa-${var.env_name}" | |
location = "${data.azurerm_resource_group.rg.location}" | |
resource_group_name = "${data.azurerm_resource_group.rg.name}" | |
app_service_plan_id = "${azurerm_app_service_plan.plan.id}" | |
storage_connection_string = "${azurerm_storage_account.storage.primary_connection_string}" | |
version = "~2" | |
app_settings = { | |
FUNCTION_APP_EDIT_MODE = "readOnly" | |
https_only = true | |
DOCKER_REGISTRY_SERVER_URL = "${data.azurerm_container_registry.registry.login_server}" | |
DOCKER_REGISTRY_SERVER_USERNAME = "${data.azurerm_container_registry.registry.admin_username}" | |
DOCKER_REGISTRY_SERVER_PASSWORD = "${data.azurerm_container_registry.registry.admin_password}" | |
WEBSITES_ENABLE_APP_SERVICE_STORAGE = false | |
} | |
site_config { | |
always_on = true | |
linux_fx_version = "DOCKER|${data.azurerm_container_registry.registry.login_server}/${var.image_name}:${var.tag}" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment