Last active
September 29, 2020 14:21
-
-
Save dilani14/d88af0c7bb60b37ac28eae9a101d90c7 to your computer and use it in GitHub Desktop.
App service slot
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
################################## | |
##### App Service Slot ########### | |
################################## | |
resource "azurerm_app_service_slot" "azuredemo-as-slot" { | |
count = var.environment == "prod" ? 1 : 0 | |
name = "staging" | |
app_service_name = "azuredemo-as.name" | |
resource_group_name = "resource_group_name" | |
location = "resource_group_location" | |
app_service_plan_id = "app_service_plan_id" | |
app_settings = { | |
"ASPNETCORE_ENVIRONMENT" = "Staging" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment