Skip to content

Instantly share code, notes, and snippets.

@dilani14
Last active September 29, 2020 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dilani14/d88af0c7bb60b37ac28eae9a101d90c7 to your computer and use it in GitHub Desktop.
Save dilani14/d88af0c7bb60b37ac28eae9a101d90c7 to your computer and use it in GitHub Desktop.
App service slot
##################################
##### 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